Core: Add App::LocalCoordinateSystem.

Most of App::Origin is moved into this sub class of App::Origin.
Add App::Point. Change graphics of the planes/axis.
Remove scale-by-content behavior and make it fixed size on screen.
This commit is contained in:
PaddleStroke
2024-11-26 10:16:03 +01:00
parent 3993bfede7
commit 4ebb66838c
23 changed files with 823 additions and 819 deletions

View File

@@ -31,6 +31,7 @@
# include <BRepBndLib.hxx>
# include <BRepBuilderAPI_MakeEdge.hxx>
# include <BRepBuilderAPI_MakeFace.hxx>
# include <BRepBuilderAPI_MakeVertex.hxx>
# include <BRepBuilderAPI_MakeShape.hxx>
# include <BRepBuilderAPI_MakeVertex.hxx>
# include <BRepExtrema_DistShapeShape.hxx>
@@ -1020,6 +1021,14 @@ static TopoShape _getTopoShape(const App::DocumentObject* obj,
}
shape = TopoShape(tag, hasher, _shape);
}
else if (linked->isDerivedFrom(App::Point::getClassTypeId())) {
static TopoDS_Shape _shape;
if (_shape.IsNull()) {
BRepBuilderAPI_MakeVertex builder(gp_Pnt(0, 0, 0));
_shape = builder.Shape();
}
shape = TopoShape(tag, hasher, _shape);
}
else if (linked->isDerivedFrom(App::Placement::getClassTypeId())) {
auto element = Data::findElementName(subname);
if (element) {