mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0031137: Modeling Data, BinTools_ShapeSet - avoid allocation of temporary arrays
BinTools_ShapeSet now defines maps with proper types instead of Standard_Transient. BinTools_ShapeSet now avoids allocation of temporary arrays while reading triangulation and polygonal data. Classes Poly_Triangle, Poly_PolygonOnTriangulation, Poly_Polygon3D and Poly_Polygon2D have been cleared from .lxx files and extended by new methods for preallocating and filling array, as alternative to passing arrays by copy. wavefront command - export "f" instead of obsolete "fo" keys into file. BinTools - added missing tools for reading/writing short reals.
This commit is contained in:
@@ -805,7 +805,7 @@ static Standard_Integer wavefront(Draw_Interpretor&, Standard_Integer nbarg, con
|
||||
k1 = n1+totalnodes;
|
||||
k2 = n2+totalnodes;
|
||||
k3 = n3+totalnodes;
|
||||
fprintf(outfile, "%s %d%s%d %d%s%d %d%s%d\n", "fo", k1,"//", k1, k2,"//", k2, k3,"//", k3);
|
||||
fprintf(outfile, "f %d%s%d %d%s%d %d%s%d\n", k1,"//", k1, k2,"//", k2, k3,"//", k3);
|
||||
}
|
||||
nbpolygons += nbTriangles;
|
||||
totalnodes += nbNodes;
|
||||
|
Reference in New Issue
Block a user