Table of Contents

Class StlSourceTopoBrick

Namespace
Hi.NcMech.Topo
Assembly
HiMech.dll

Represents a topological brick that sources its geometry from an STL file. Implements display, collision detection, and content update capabilities.

public class StlSourceTopoBrick : ITopoBrick, IGetSolid, IAnchoredDisplayee, IGetRootAnchor, IDisplayee, IExpandToBox3d, IAnchoredCollidableLeaf, IAnchoredCollidableNode, IAnchoredCollidableBased, ICollidable, IDisposable, IUpdateByContent, IClearCache
Inheritance
StlSourceTopoBrick
Implements
Inherited Members
Extension Methods

Constructors

StlSourceTopoBrick()

Initializes a new instance of the StlSourceTopoBrick class.

public StlSourceTopoBrick()

StlSourceTopoBrick(Anchor)

Initializes a new instance of the StlSourceTopoBrick class with the specified anchor.

public StlSourceTopoBrick(Anchor anchor)

Parameters

anchor Anchor

The anchor point for this brick.

StlSourceTopoBrick(Anchor, IGetStl)

Initializes a new instance of the StlSourceTopoBrick class with the specified anchor and geometry.

public StlSourceTopoBrick(Anchor anchor, IGetStl geom)

Parameters

anchor Anchor

The anchor point for this brick.

geom IGetStl

The STL geometry source.

Properties

Anchor

Gets the anchor point for this brick.

public Anchor Anchor { get; }

Property Value

Anchor

CollidableName

Gets the name of the collidable object.

public string CollidableName { get; }

Property Value

string

CollisionFlag

Gets or sets the collision flag.

public CollisionFlag CollisionFlag { get; set; }

Property Value

CollisionFlag

Geom

Gets or sets the STL geometry source.

public IGetStl Geom { get; set; }

Property Value

IGetStl

Solid

Gets the solid geometry instance.

public Solid Solid { get; }

Property Value

Solid

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 Bind

Bind with DispEngine. See Bind.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

Releases the unmanaged resources and optionally releases the managed resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

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 Box3d

Destination 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

ICollidee

ICollidee

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()