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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user