DG Kernel Documentation


Skip Navigation Links.
Skip Navigation LinksHome Page > API Reference > Model > Entities > Geometry > BSpline BRep Geometry > IBRepShape_DG Search Documentation


IBRepShape_DG Interface

GetShapeType
GetLocation
SetLocation
GetSubShapes
GetAncestors
IsPartner
IsSame
IsEqual
GetHash
GetTolerance
IsValid

ShapeType_DG GetShapeType()


IFrame_DG GetLocation()

This method is reserved for future development. Currently location of the top level shape coinsides with location of the owner entity. Location of child shapes should be considered undefined.


void SetLocation(IFrame_DG frame)

This method is reserved for future development. Currently the location is set internally


IShapeArray_DG GetSubShapes(ShapeType_DG type)

Searches children and all lower level descendents. For example GetSubShapes(eShTypeEdgeDG) called for a solid returns all edges of the solid


IShapeArray_DG GetAncestors(ShapeType_DG type)

Searches parents and all higher level ancestors. For example, GetAncestors(eShTypeFaceDG) called for a vertex, returns all faces, which have the vertex as a descendent.


bool IsPartner(IBRepShape_DG other)

Returns true if geometries of the shapes are identical up to movement in 3D space. i.e. Geometry is the same, but location may be different


bool IsSame(IBRepShape_DG other)

Returns true if the shapes have identical internal geometry and location, but may be different object instances in memory


bool IsEqual(IBRepShape_DG other)

Returns true if this and other refer to the same object in memory. The result is equivalent to GetHash()==other.GetHash()


int GetHash()

Returns an opaque number which identifies the object in computer memory.


double GetTolerance()


boo IsValid()

Checks if internal BRep structures are valid and consistent.