Class SolidSourceTopoBrick
Represents a topological brick that sources its geometry from a solid model. Implements display, collision detection, and content update capabilities.
public class SolidSourceTopoBrick : ITopoBrick, IGetSolid, IAnchoredDisplayee, IGetRootAnchor, IDisplayee, IExpandToBox3d, IAnchoredCollidableLeaf, IAnchoredCollidableNode, IAnchoredCollidableBased, ICollidable, IUpdateByContent, IClearCache
- Inheritance
-
SolidSourceTopoBrick
- Implements
- Inherited Members
- Extension Methods
Constructors
SolidSourceTopoBrick()
Initializes a new instance of the SolidSourceTopoBrick class.
public SolidSourceTopoBrick()
SolidSourceTopoBrick(Anchor)
Initializes a new instance of the SolidSourceTopoBrick class with the specified anchor.
public SolidSourceTopoBrick(Anchor anchor)
Parameters
anchor
AnchorThe anchor point for this brick.
SolidSourceTopoBrick(Anchor, IGetSolid)
Initializes a new instance of the SolidSourceTopoBrick class with the specified anchor and solid source.
public SolidSourceTopoBrick(Anchor anchor, IGetSolid solidSource)
Parameters
Properties
Anchor
Gets the anchor point for this brick.
public Anchor Anchor { get; }
Property Value
CollidableName
Gets the name of the collidable object.
public string CollidableName { get; }
Property Value
CollisionFlag
Gets or sets the collision flag.
public CollisionFlag CollisionFlag { get; set; }
Property Value
SolidSource
Gets the solid geometry source.
public IGetSolid SolidSource { get; }
Property Value
Methods
ClearCache()
Clears any cached data held by the implementing object.
public void ClearCache()
Display(Bind)
Display function called in DispEngine rendering loop.
public void Display(Bind bind)
Parameters
bind
BindBind with DispEngine. See Bind.
ExpandToBox3d(Box3d)
Expands the destination box. This function is usually used to compute the bounding box of elements.
public void ExpandToBox3d(Box3d dst)
Parameters
dst
Box3dDestination box
GetAnchoredCollidableNode()
Gets the anchored collidable node associated with this object.
public IAnchoredCollidableNode GetAnchoredCollidableNode()
Returns
- IAnchoredCollidableNode
The anchored collidable node.
GetCollidableAnchor()
Gets the anchor associated with this collidable leaf.
public Anchor GetCollidableAnchor()
Returns
- Anchor
The anchor for this collidable leaf.
GetCollidee()
Get ICollidee.
public ICollidee GetCollidee()
Returns
GetRootAnchor()
Get root anchor.
public Anchor GetRootAnchor()
Returns
- Anchor
root anchor.
GetSolid()
Gets the solid geometry object.
public Solid GetSolid()
Returns
- Solid
The solid geometry object.
UpdateByContent()
Updates the object based on its current content.
public void UpdateByContent()