occt: improve delete point with actual clearing from memory instead of
nullification
This commit is contained in:
+2
-2
@@ -24,6 +24,6 @@ void coord_point(const TopoDS_Shape& shape, double* x, double* y, double* z) {
|
|||||||
*z = point.Z();
|
*z = point.Z();
|
||||||
}
|
}
|
||||||
|
|
||||||
void clear_point(TopoDS_Shape& shape) {
|
void delete_shape(TopoDS_Shape* shape) {
|
||||||
shape.Nullify();
|
delete shape;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user