mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
0032133: Modeling Data - Restriction of access to internal arrays for Poly_Triangulation, revision of API
Removed methods from Poly_Triangulation/Poly_PolygonOnTriangulation giving access to internal arrays of 2d and 3d nodes, triangles and normals.
This commit is contained in:
@@ -48,19 +48,7 @@ RWGltf_TriangulationReader::RWGltf_TriangulationReader()
|
||||
// =======================================================================
|
||||
void RWGltf_TriangulationReader::reset()
|
||||
{
|
||||
myTriangulation = new Poly_Triangulation (1, 1, true);
|
||||
{
|
||||
TColgp_Array1OfPnt anEmpty;
|
||||
myTriangulation->ChangeNodes().Move (anEmpty);
|
||||
}
|
||||
{
|
||||
TColgp_Array1OfPnt2d anEmpty;
|
||||
myTriangulation->ChangeUVNodes().Move (anEmpty);
|
||||
}
|
||||
{
|
||||
Poly_Array1OfTriangle anEmpty;
|
||||
myTriangulation->ChangeTriangles().Move (anEmpty);
|
||||
}
|
||||
myTriangulation = new Poly_Triangulation();
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
@@ -73,10 +61,6 @@ Handle(Poly_Triangulation) RWGltf_TriangulationReader::result()
|
||||
{
|
||||
return Handle(Poly_Triangulation)();
|
||||
}
|
||||
if (myTriangulation->UVNodes().Size() != myTriangulation->NbNodes())
|
||||
{
|
||||
myTriangulation->RemoveUVNodes();
|
||||
}
|
||||
|
||||
if (myTriangulation->NbTriangles() < 1)
|
||||
{
|
||||
|
Reference in New Issue
Block a user