occt: add point deletion function
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user