OpenSceneGraph icon indicating copy to clipboard operation
OpenSceneGraph copied to clipboard

Use non-deprecated methods to access OpenCascade Triangulation elements

Open StefanBruens opened this issue 1 year ago • 1 comments

The Triangles() and Nodes() accessors have been deprecated in favor of the Triangle(index) and Node(index) methods, available since OCC 7.2.0, i.e. for over 5 years.

The Nodes() method has been removed with OCC 7.6.0, and Triangles() is also slated for removal (currently). Use the non-deprecated methods, and also fix the types of the index variables to Standard_Integer.

StefanBruens avatar Jul 04 '22 23:07 StefanBruens

OCCT commit adding the "new" methods: https://git.dev.opencascade.org/gitweb/?p=occt.git;a=commitdiff;h=624f732fb45531453af93b1806fd49fdcbbce633

StefanBruens avatar Jul 04 '22 23:07 StefanBruens