occt: add point deletion function

This commit is contained in:
2025-11-11 10:45:42 +01:00
parent af9f65ab1d
commit 7a903fecab
2 changed files with 10 additions and 0 deletions
+6
View File
@@ -3,9 +3,15 @@
Copyright (C) 2025 Erick Ahmed
*/
#ifndef POINT_HPP
#define POINT_HPP
#pragma once
#include <gp_Pnt.hxx>
TopoDS_Shape make_point(double x, double y, double z);
void coord_point(const TopoDS_Shape& shape, double* x, double* y, double* z);
void clear_point(TopoDS_Shape& shape);
#endif
+4
View File
@@ -23,3 +23,7 @@ void coord_point(const TopoDS_Shape& shape, double* x, double* y, double* z) {
*y = point.Y();
*z = point.Z();
}
void clear_point(TopoDS_Shape& shape) {
shape.Nullify();
}