OpenLexocad  27.1
Topo::MeshShape Class Referenceabstract

#include <Shape.h>

Inheritance diagram for Topo::MeshShape:
Topo::Shape Topo::TopologicalItem Base::BaseClass

Public Types

typedef std::vector< int > MeshModel
 
typedef std::vector< MeshModelSubMeshModels
 
- Public Types inherited from Topo::Shape
enum  CheckShape { CheckShapeIsValidAndThrowException, CheckShapeIsValid, Unchecked }
 
- Public Types inherited from Topo::TopologicalItem
enum  MesherType { MesherType::Default_Mesher, MesherType::Acis_Mesher, MesherType::Compound_Mesher }
 
enum  ModellingKernel {
  ModellingKernel::OCC, ModellingKernel::ACIS, ModellingKernel::CARVE, ModellingKernel::MIXED,
  ModellingKernel::UNKNOWN
}
 

Public Member Functions

 MeshShape (void)
 
 MeshShape (pConstMesh rhs, bool deepCopy=true)
 
virtual ~MeshShape (void)
 
virtual void copyFrom (pConstMesh rhs, bool deepCopy=true)=0
 
virtual Geom::Bnd_Box getBoundingBox () const =0
 Calculates (if needed) and returns the BoundingBox of the mesh. More...
 
virtual pConstBrepData getMeshAsBrepData () const =0
 Returns the mesh as BrepData. More...
 
virtual void getTextureCoordinates (std::vector< Geom::Pnt2d > &textureCoordinates, std::vector< int > &textureIndices) const =0
 
virtual bool calculateDetail (CA_Detail &detail, const CA_Snap &theSnap)=0
 
virtual void getEdges (std::vector< std::pair< Geom::Pnt, Geom::Pnt > > &lines) const =0
 
virtual void getPoints (std::vector< Geom::Pnt > &points) const =0
 
virtual void getModel (Topo::MeshShape::MeshModel &model) const =0
 
virtual std::vector< Geom::PntgetNormals () const =0
 
virtual void getOuterBoundaries (std::vector< Geom::Pnt > &points, std::vector< int > &edges) const =0
 
virtual void getFacePoints (int index, std::vector< Geom::Pnt > &points) const =0
 
virtual bool getGeometricInformation (Topo::GeometricInformation &) const
 
- Public Member Functions inherited from Topo::Shape
 Shape (void)
 
 Shape (pConstShape rhs)
 
virtual ~Shape (void)
 
virtual void transform (const Geom::Trsf &t)
 
virtual Geom::Trsf getTransform () const
 
virtual Topo::ShapeType getShapeType () const =0
 
 operator Core::Variant () const
 Variant operator. More...
 
virtual pConstTopologicalItem getOwner () const
 Returns top-level owner. Returns this if item is top-level. More...
 
bool hasShapeAttributes () const
 Checks if this shape has ShapeAttributes. More...
 
Topo::ShapeAttributesgetShapeAttributes () const
 Returns the ShapeAttributes of this shape. More...
 
void addShapeAttributes (Topo::ShapeAttributes *atts)
 Adds ShapeAttributes to this shape. If shape already had some attributes they are released. More...
 
void releaseShapesAttributes ()
 Deletes the ShapeAttributes associated with this shape. More...
 
virtual void setIndexMesh (pIndexedMesh m)
 
virtual pIndexedMesh getIndexedMesh () const
 
virtual bool createIndexedMesh (pIndexedMesh m) const
 
virtual void setIndexedDrawable (pIndexedDrawable)
 
virtual pIndexedDrawable getIndexedDrawable () const
 
virtual std::shared_ptr< Core::DbgInfogetDbgInfo () const
 
virtual Topo::Shapeclone (bool deepcopy) const =0
 
virtual bool wasCreatedWithProblems () const
 
virtual void setWasCreatedWithProblems (bool)
 
- Public Member Functions inherited from Topo::TopologicalItem
 TopologicalItem ()
 
virtual ~TopologicalItem (void)
 
virtual Topo::TopologicalItem::MesherType getMesherType () const =0
 
virtual Topo::TopologicalItem::ModellingKernel getModellingKernel () const =0
 
virtual Topo::ShapeToolgetShapeTool () const =0
 
virtual ENTITY * getEntity () const
 
- Public Member Functions inherited from Base::BaseClass
virtual Type getTypeId (void) const
 
template<typename T >
bool isDerivedFrom () const
 
bool isDerivedFrom (const Type type) const
 
 BaseClass ()
 Construction. More...
 
virtual ~BaseClass ()
 Destruction. More...
 

Protected Member Functions

virtual Topo::MeshToolgetMeshTool () const =0
 
- Protected Member Functions inherited from Topo::Shape
 Shape (ENTITY *ent)
 
virtual bool isSingleFace () const
 
virtual bool isSingleWire () const
 
virtual bool isSingleEdge () const
 
virtual bool isSingleVertex () const
 
virtual bool isSolid () const
 
virtual bool isClosedSolid () const
 
virtual bool isWire () const
 
virtual bool isCompound () const
 
virtual bool isMesh () const
 
bool _copy (const Topo::Shape *rhs, bool deepCopy=true)
 
- Protected Member Functions inherited from Topo::TopologicalItem
 TopologicalItem (ENTITY *)
 

Friends

class MeshTool
 

Additional Inherited Members

- Static Public Member Functions inherited from Base::BaseClass
static Type getClassTypeId (void)
 
static void init (void)
 
static void * create (void)
 
static void setIfcNameAndID (const std::string &n, int id)
 
- Public Attributes inherited from Topo::Shape
std::set< Core::DocObject * > m_appGeometryBackLinks
 
- Public Attributes inherited from Base::BaseClass
long ____deadVal = 0xBADEAFFE
 
- Static Protected Member Functions inherited from Base::BaseClass
static void initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=0)
 
static void initIfcTypes (const std::string &s, Base::Type classTypeId, int id)
 
- Protected Attributes inherited from Topo::TopologicalItem
pConstTopologicalItem source
 

Member Typedef Documentation

◆ MeshModel

typedef std::vector<int> Topo::MeshShape::MeshModel

◆ SubMeshModels

Constructor & Destructor Documentation

◆ MeshShape() [1/2]

Topo::MeshShape::MeshShape ( void  )

◆ MeshShape() [2/2]

Topo::MeshShape::MeshShape ( pConstMesh  rhs,
bool  deepCopy = true 
)

◆ ~MeshShape()

virtual Topo::MeshShape::~MeshShape ( void  )
virtual

Member Function Documentation

◆ calculateDetail()

virtual bool Topo::MeshShape::calculateDetail ( CA_Detail &  detail,
const CA_Snap &  theSnap 
)
pure virtual

◆ copyFrom()

virtual void Topo::MeshShape::copyFrom ( pConstMesh  rhs,
bool  deepCopy = true 
)
pure virtual

◆ getBoundingBox()

virtual Geom::Bnd_Box Topo::MeshShape::getBoundingBox ( ) const
pure virtual

Calculates (if needed) and returns the BoundingBox of the mesh.

Implements Topo::Shape.

◆ getEdges()

virtual void Topo::MeshShape::getEdges ( std::vector< std::pair< Geom::Pnt, Geom::Pnt > > &  lines) const
pure virtual

◆ getFacePoints()

virtual void Topo::MeshShape::getFacePoints ( int  index,
std::vector< Geom::Pnt > &  points 
) const
pure virtual

◆ getGeometricInformation()

virtual bool Topo::MeshShape::getGeometricInformation ( Topo::GeometricInformation ) const
inlinevirtual

Reimplemented from Topo::Shape.

◆ getMeshAsBrepData()

virtual pConstBrepData Topo::MeshShape::getMeshAsBrepData ( ) const
pure virtual

Returns the mesh as BrepData.

◆ getMeshTool()

virtual Topo::MeshTool* Topo::MeshShape::getMeshTool ( ) const
protectedpure virtual

◆ getModel()

virtual void Topo::MeshShape::getModel ( Topo::MeshShape::MeshModel model) const
pure virtual

◆ getNormals()

virtual std::vector<Geom::Pnt> Topo::MeshShape::getNormals ( ) const
pure virtual

◆ getOuterBoundaries()

virtual void Topo::MeshShape::getOuterBoundaries ( std::vector< Geom::Pnt > &  points,
std::vector< int > &  edges 
) const
pure virtual

◆ getPoints()

virtual void Topo::MeshShape::getPoints ( std::vector< Geom::Pnt > &  points) const
pure virtual

◆ getTextureCoordinates()

virtual void Topo::MeshShape::getTextureCoordinates ( std::vector< Geom::Pnt2d > &  textureCoordinates,
std::vector< int > &  textureIndices 
) const
pure virtual

Friends And Related Function Documentation

◆ MeshTool

friend class MeshTool
friend

The documentation for this class was generated from the following file: