[TechDraw] Add Owner property to Symbols

This commit is contained in:
pavltom
2024-02-11 13:53:48 +01:00
committed by WandererFan
parent 37aba37baf
commit ff14c58ccc
18 changed files with 254 additions and 27 deletions

View File

@@ -36,6 +36,7 @@
# include <BRepBuilderAPI_MakeVertex.hxx>
# include <BRepBuilderAPI_MakeWire.hxx>
# include <BRepExtrema_DistShapeShape.hxx>
# include <BRepGProp.hxx>
# include <BRepLib.hxx>
# include <BRepLProp_CLProps.hxx>
# include <BRepTools.hxx>
@@ -43,6 +44,7 @@
# include <GC_MakeEllipse.hxx>
# include <gce_MakeCirc.hxx>
# include <GCPnts_AbscissaPoint.hxx>
# include <GProp_GProps.hxx>
# include <Geom_BSplineCurve.hxx>
# include <Geom_BezierCurve.hxx>
# include <Geom_Circle.hxx>
@@ -158,6 +160,14 @@ TopoDS_Face Face::toOccFace() const
return TopoDS_Face();
}
//**** Face
Base::Vector3d Face::getCenter() const {
GProp_GProps faceProps;
BRepGProp::SurfaceProperties(toOccFace(), faceProps);
return DrawUtil::toVector3d(faceProps.CentreOfMass());
}
Face::~Face()
{
for(auto it : wires) {