diff --git a/src/occt/include/point.hpp b/src/occt/include/point.hpp index 8b82a03..605572a 100644 --- a/src/occt/include/point.hpp +++ b/src/occt/include/point.hpp @@ -3,9 +3,15 @@ Copyright (C) 2025 Erick Ahmed */ +#ifndef POINT_HPP +#define POINT_HPP + #pragma once #include 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 diff --git a/src/occt/point.cpp b/src/occt/point.cpp index 84cee5d..5df99f5 100644 --- a/src/occt/point.cpp +++ b/src/occt/point.cpp @@ -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(); +}