Class Body
- Namespace
- Macad.Core.Topology
- Assembly
- Macad.Core.dll
public class Body : InteractiveEntity, IDecorable, ITransformable
- Inheritance
-
Body
- Implements
-
Constructors
Properties
public List<Component> Components { get; set; }
- Property Value: List<Component>
public Model Model { get; }
- Property Value: Model
public Pnt Position { get; set; }
- Property Value: Pnt
public Shape RootShape { get; }
- Property Value: Shape
public Quaternion Rotation { get; set; }
- Property Value: Quaternion
public Shape Shape { get; set; }
- Property Value: Shape
Methods
public void AddComponent(Component component)
component
Component
public void AddDependent(IShapeDependent dependent)
dependent
IShapeDependent
public bool AddShape(Shape shape, bool saveUndo = true)
shape
Shape
saveUndo
bool
- Returns: bool
public void CollapseShapeStack(Shape newRootShape, bool saveUndo = true)
newRootShape
Shape
saveUndo
bool
public static Body Create(Shape shape)
shape
Shape
- Returns: Body
public T FindComponent<T>(bool inherited = false) where T : Component
inherited
bool
- Returns: T
T
public TopoDS_Shape GetBRep()
- Returns: TopoDS_Shape
public IEnumerable<Component> GetComponents(bool inherited)
inherited
bool
- Returns: IEnumerable<Component>
public Ax3 GetCoordinateSystem()
- Returns: Ax3
public IEnumerable<IShapeDependent> GetDependents()
- Returns: IEnumerable<IShapeDependent>
public IEnumerable<ITransformable> GetLinkedTransformables()
- Returns: IEnumerable<ITransformable>
public Model GetOwnerModel()
- Returns: Model
public List<Body> GetReferencedBodies()
- Returns: List<Body>
public Trsf GetTransformation()
- Returns: Trsf
public override TopoDS_Shape GetTransformedBRep()
- Returns: TopoDS_Shape
public byte[] GetUndoDataBlob()
- Returns: byte[]
public override void Invalidate()
public void InvalidateDependents()
public bool IsShapeEffective(Shape shape)
shape
Shape
- Returns: bool
public override void OnBeginDeserializing(SerializationContext context)
context
SerializationContext
public override void OnDeserialized(SerializationContext context)
context
SerializationContext
public void RaiseShapeTopologyChanged()
public override void Remove()
public void RemoveComponent(Component component)
component
Component
public void RemoveDependent(IShapeDependent dependent)
dependent
IShapeDependent
public bool RemoveShape(Shape shape, bool saveUndo = true)
shape
Shape
saveUndo
bool
- Returns: bool
public void SaveTopologyUndo()
public void SetUndoDataBlob(byte[] dataBlob)
dataBlob
byte[]
public void UpdateErrorState()