#include <BaseMeshTopology.h>

Protected Attributes | |
| sofa::core::objectmodel::DataFileName | fileTopology |
Protected Attributes inherited from sofa::core::objectmodel::BaseComponent | |
| SingleLink< BaseComponent, BaseContext, BaseLink::FLAG_DOUBLELINK > | l_context |
| LinkSlaves | l_slaves |
| SingleLink< BaseComponent, BaseComponent, BaseLink::FLAG_DOUBLELINK > | l_master |
Protected Attributes inherited from sofa::core::objectmodel::Base | |
| std::map< std::string, sofa::core::DataTrackerCallback > | m_internalEngine |
| VecData | m_vecData |
| List of fields (Data instances) More... | |
| MapData | m_aliasData |
| name -> Data multi-map (includes names and aliases) More... | |
| VecLink | m_vecLink |
| List of links. More... | |
| MapLink | m_aliasLink |
| name -> Link multi-map (includes names and aliases) More... | |
Public Member Functions | |
| SOFA_ABSTRACT_CLASS (BaseMeshTopology, core::topology::Topology) | |
| void | init () override |
| Initialization method called at graph creation and modification, during top-down traversal. More... | |
| virtual void | computeCrossElementBuffers () |
| Method to be overriden by child class to create all the topology buffers. More... | |
| virtual bool | load (const char *filename) |
| virtual std::string | getFilename () const |
| virtual EdgeID | getEdgeIndex (PointID v1, PointID v2) |
| Returns the index of the edge joining vertex v1 and vertex v2; returns InvalidID if no edge exists. More... | |
| virtual TriangleID | getTriangleIndex (PointID v1, PointID v2, PointID v3) |
| Returns the index of the triangle given three vertex indices; returns InvalidID if no triangle exists. More... | |
| virtual QuadID | getQuadIndex (PointID v1, PointID v2, PointID v3, PointID v4) |
| Returns the index of the quad given four vertex indices; returns InvalidID if no quad exists. More... | |
| virtual TetrahedronID | getTetrahedronIndex (PointID v1, PointID v2, PointID v3, PointID v4) |
| Returns the index of the tetrahedron given four vertex indices; returns InvalidID if no tetrahedron exists. More... | |
| virtual HexahedronID | getHexahedronIndex (PointID v1, PointID v2, PointID v3, PointID v4, PointID v5, PointID v6, PointID v7, PointID v8) |
| Returns the index of the hexahedron given eight vertex indices; returns InvalidID if no hexahedron exists. More... | |
| virtual int | getVertexIndexInTriangle (const Triangle &t, PointID vertexIndex) const |
| virtual int | getEdgeIndexInTriangle (const EdgesInTriangle &t, EdgeID edgeIndex) const |
| virtual int | getVertexIndexInQuad (const Quad &t, PointID vertexIndex) const |
| virtual int | getEdgeIndexInQuad (const EdgesInQuad &t, EdgeID edgeIndex) const |
| virtual int | getVertexIndexInTetrahedron (const Tetra &t, PointID vertexIndex) const |
| virtual int | getEdgeIndexInTetrahedron (const EdgesInTetrahedron &t, EdgeID edgeIndex) const |
| virtual int | getTriangleIndexInTetrahedron (const TrianglesInTetrahedron &t, TriangleID triangleIndex) const |
| virtual int | getVertexIndexInHexahedron (const Hexa &t, PointID vertexIndex) const |
| virtual int | getEdgeIndexInHexahedron (const EdgesInHexahedron &t, EdgeID edgeIndex) const |
| virtual int | getQuadIndexInHexahedron (const QuadsInHexahedron &t, QuadID quadIndex) const |
| virtual Edge | getLocalEdgesInTetrahedron (const PointID i) const |
| Returns for each index (between 0 and 5) the two vertex indices that are adjacent to that edge. More... | |
| virtual Triangle | getLocalTrianglesInTetrahedron (const PointID i) const |
| Returns for each index (between 0 and 3) the three local vertices indices that are adjacent to that triangle. More... | |
| virtual Edge | getLocalEdgesInHexahedron (const PointID i) const |
| Returns for each index (between 0 and 12) the two vertex indices that are adjacent to that edge. More... | |
| virtual Quad | getLocalQuadsInHexahedron (const PointID i) const |
| Returns for each index (between 0 and 6) the four vertices indices that are adjacent to that quad. More... | |
| virtual int | getRevision () const |
| virtual void | reOrientateTriangle (TriangleID id) |
| Will change order of vertices in triangle: t[1] <=> t[2]. More... | |
| virtual const sofa::type::vector< TriangleID > & | getTrianglesOnBorder () |
| Returns the set of triangles on the border of the triangulation. More... | |
| virtual const sofa::type::vector< EdgeID > & | getEdgesOnBorder () |
| Returns the set of edges on the border of the triangulation. More... | |
| virtual const sofa::type::vector< PointID > & | getPointsOnBorder () |
| Returns the set of points on the border of the triangulation. More... | |
| bool | insertInNode (objectmodel::BaseNode *node) override |
| bool | removeInNode (objectmodel::BaseNode *node) override |
| template<> | |
| SOFA_CORE_API Size | getNbElements () |
| template<> | |
| SOFA_CORE_API Size | getNbElements () |
| template<> | |
| SOFA_CORE_API Size | getNbElements () |
| template<> | |
| SOFA_CORE_API Size | getNbElements () |
| template<> | |
| SOFA_CORE_API Size | getNbElements () |
| template<> | |
| SOFA_CORE_API Size | getNbElements () |
| template<> | |
| SOFA_CORE_API Size | getNbElements () |
| virtual const SeqEdges & | getEdges ()=0 |
| virtual const SeqTriangles & | getTriangles ()=0 |
| virtual const SeqQuads & | getQuads ()=0 |
| virtual const SeqTetrahedra & | getTetrahedra ()=0 |
| virtual const SeqHexahedra & | getHexahedra ()=0 |
| virtual const SeqPrisms & | getPrisms ()=0 |
| virtual const SeqPyramids & | getPyramids ()=0 |
| template<class ElementType > | |
| const auto & | getElements () const |
| virtual Size | getNbEdges () |
| virtual Size | getNbTriangles () |
| virtual Size | getNbQuads () |
| virtual Size | getNbTetrahedra () |
| virtual Size | getNbHexahedra () |
| virtual Size | getNbPrisms () |
| virtual Size | getNbPyramids () |
| template<class ElementType > | |
| Size | getNbElements () |
| Returns the number of elements of a specific type. More... | |
| virtual const Edge | getEdge (EdgeID i) |
| virtual const Triangle | getTriangle (TriangleID i) |
| virtual const Quad | getQuad (QuadID i) |
| virtual const Tetra | getTetrahedron (TetraID i) |
| virtual const Hexa | getHexahedron (HexaID i) |
| virtual const Prism | getPrism (PrismID i) |
| virtual const Pyramid | getPyramid (PyramidID i) |
| virtual sofa::geometry::ElementType | getTopologyType () const =0 |
| Type of higher topology element contains in this container. More... | |
| virtual Size | getNbTetras () |
| virtual Size | getNbHexas () |
| virtual Tetra | getTetra (TetraID i) |
| virtual Hexa | getHexa (HexaID i) |
| virtual const SeqTetrahedra & | getTetras () |
| virtual const SeqHexahedra & | getHexas () |
neighbors queries | |
Returns the set of edges adjacent to a given vertex. | |
| virtual const EdgesAroundVertex & | getEdgesAroundVertex (PointID i) |
| Returns the set of edges adjacent to a given vertex. More... | |
| virtual const EdgesInTriangle & | getEdgesInTriangle (TriangleID i) |
| Returns the set of edges adjacent to a given triangle. More... | |
| virtual const EdgesInQuad & | getEdgesInQuad (QuadID i) |
| Returns the set of edges adjacent to a given quad. More... | |
| virtual const EdgesInTetrahedron & | getEdgesInTetrahedron (TetraID i) |
| Returns the set of edges adjacent to a given tetrahedron. More... | |
| virtual const EdgesInHexahedron & | getEdgesInHexahedron (HexaID i) |
| Returns the set of edges adjacent to a given hexahedron. More... | |
| virtual const TrianglesAroundVertex & | getTrianglesAroundVertex (PointID i) |
| Returns the set of triangles adjacent to a given vertex. More... | |
| virtual const TrianglesAroundEdge & | getTrianglesAroundEdge (EdgeID i) |
| Returns the set of triangles adjacent to a given edge. More... | |
| virtual const TrianglesInTetrahedron & | getTrianglesInTetrahedron (TetraID i) |
| Returns the set of triangles adjacent to a given tetrahedron. More... | |
| virtual const QuadsAroundVertex & | getQuadsAroundVertex (PointID i) |
| Returns the set of quads adjacent to a given vertex. More... | |
| virtual const QuadsAroundEdge & | getQuadsAroundEdge (EdgeID i) |
| Returns the set of quads adjacent to a given edge. More... | |
| virtual const QuadsInHexahedron & | getQuadsInHexahedron (HexaID i) |
| Returns the set of quads adjacent to a given hexahedron. More... | |
| virtual const TetrahedraAroundVertex & | getTetrahedraAroundVertex (PointID i) |
| Returns the set of tetrahedra adjacent to a given vertex. More... | |
| virtual const TetrahedraAroundEdge & | getTetrahedraAroundEdge (EdgeID i) |
| Returns the set of tetrahedra adjacent to a given edge. More... | |
| virtual const TetrahedraAroundTriangle & | getTetrahedraAroundTriangle (TriangleID i) |
| Returns the set of tetrahedra adjacent to a given triangle. More... | |
| virtual const HexahedraAroundVertex & | getHexahedraAroundVertex (PointID i) |
| Returns the set of hexahedra adjacent to a given vertex. More... | |
| virtual const HexahedraAroundEdge & | getHexahedraAroundEdge (EdgeID i) |
| Returns the set of hexahedra adjacent to a given edge. More... | |
| virtual const HexahedraAroundQuad & | getHexahedraAroundQuad (QuadID i) |
| Returns the set of hexahedra adjacent to a given quad. More... | |
| virtual const VerticesAroundVertex | getVerticesAroundVertex (PointID i) |
| Returns the set of vertices adjacent to a given vertex (i.e. sharing an edge) More... | |
| virtual const sofa::type::vector< Index > | getElementAroundElement (Index elem) |
| Returns the set of element indices adjacent to a given element (i.e. sharing a link) More... | |
| virtual const sofa::type::vector< Index > | getElementAroundElements (sofa::type::vector< Index > elems) |
| Returns the set of element indices adjacent to a given list of elements (i.e. sharing a link) More... | |
Deprecated names, for backward-compatibility | |
| const SeqLines & | getLines () |
| Size | getNbLines () |
| Line | getLine (LineID i) |
Initial points accessors (only available if the topology was loaded from a file containing this information). | |
Note that this data is only used for initialization and is not maintained afterwards (i.e. topological changes may not be applied) | |
| bool | hasPos () const override |
| SReal | getPX (Index) const override |
| SReal | getPY (Index) const override |
| SReal | getPZ (Index) const override |
| virtual void | clear () |
| virtual void | addPoint (SReal px, SReal py, SReal pz) |
| virtual void | addEdge (Index a, Index b) |
| void | addLine (Index a, Index b) |
| virtual void | addTriangle (Index a, Index b, Index c) |
| virtual void | addQuad (Index a, Index b, Index c, Index d) |
| virtual void | addTetra (Index a, Index b, Index c, Index d) |
| virtual void | addHexa (Index a, Index b, Index c, Index d, Index e, Index f, Index g, Index h) |
| virtual void | addPrism (Index a, Index b, Index c, Index d, Index e, Index f) |
| virtual void | addPyramid (Index a, Index b, Index c, Index d, Index e) |
| virtual bool | checkConnexity () |
| virtual bool | checkTopology () const |
| Checks if the topology is coherent. More... | |
| virtual Size | getNumberOfConnectedComponent () |
| Returns the number of connected component. More... | |
| virtual const sofa::type::vector< Index > | getConnectedElement (Index elem) |
| Returns the set of element indices connected to an input one (i.e. which can be reached by topological links) More... | |
| virtual std::list< const TopologyChange * >::const_iterator | beginChange () const |
| Provides an iterator on the first element in the list of TopologyChange objects. More... | |
| virtual std::list< const TopologyChange * >::const_iterator | endChange () const |
| Provides an iterator on the last element in the list of TopologyChange objects. More... | |
| virtual std::list< const TopologyChange * >::const_iterator | beginStateChange () const |
| Provides an iterator on the first element in the list of StateChange objects. More... | |
| virtual std::list< const TopologyChange * >::const_iterator | endStateChange () const |
| Provides an iterator on the last element in the list of StateChange objects. More... | |
Public Member Functions inherited from sofa::core::topology::Topology | |
| SOFA_CLASS (Topology, core::objectmodel::BaseComponent) | |
| bool | insertInNode (objectmodel::BaseNode *node) override |
| bool | removeInNode (objectmodel::BaseNode *node) override |
| virtual Size | getNbPoints () const |
| virtual void | setNbPoints (Size) |
Public Member Functions inherited from sofa::core::objectmodel::BaseComponent | |
| SOFA_CLASS (BaseComponent, Base) | |
| virtual void | draw (const core::visual::VisualParams *) |
| Render internal data of this object, for debugging purposes. More... | |
| virtual void | computeBBox (const core::ExecParams *, bool=false) |
| void | setSrc (const std::string &v, std::vector< std::string > *attributeList=nullptr) |
| Sets a source Object and parses it to collect dependent Data. More... | |
| void | setSrc (const std::string &v, const BaseComponent *loader, std::vector< std::string > *attributeList=nullptr) |
| Base * | findLinkDestClass (const BaseClass *destType, const std::string &path, const BaseLink *link) override |
| virtual std::string | getPathName () const override |
| Return the full path name of this object. More... | |
| SReal | getTime () const |
| Current time. More... | |
| const BaseContext * | getContext () const |
| BaseContext * | getContext () |
| const BaseComponent * | getMaster () const |
| BaseComponent * | getMaster () |
| const VecSlaves & | getSlaves () const |
| BaseComponent * | getSlave (const std::string &name) const |
| virtual void | addSlave (BaseComponent::SPtr s) |
| virtual void | removeSlave (BaseComponent::SPtr s) |
| virtual void | handleEvent (Event *) |
| Handle an event. More... | |
| virtual void | handleTopologyChange () |
| virtual void | handleTopologyChange (core::topology::Topology *t) |
| void | parse (BaseObjectDescription *arg) override |
| Parse the given description to assign values to this object's fields and potentially other parameters. More... | |
| virtual void | bwdInit () |
| Initialization method called at graph creation and modification, during bottom-up traversal. More... | |
| virtual void | reinit () |
| Update method called when variables used in precomputation are modified. More... | |
| void | updateInternal () |
| Update method called when variables (used to compute other internal variables) are modified. More... | |
| virtual void | storeResetState () |
| Save the initial state for later uses in reset() More... | |
| virtual void | reset () |
| Reset to initial state. More... | |
| virtual void | cleanup () |
Public Member Functions inherited from sofa::core::objectmodel::Base | |
| virtual const BaseClass * | getClass () const |
| void | addDeprecatedAttribute (lifecycle::DeprecatedData *attribute) |
| void | addUpdateCallback (const std::string &name, std::initializer_list< BaseData * > inputs, std::function< sofa::core::objectmodel::ComponentState(const DataTracker &)> function, std::initializer_list< BaseData * > outputs) |
| void | addOutputsToCallback (const std::string &name, std::initializer_list< BaseData * > outputs) |
| const std::string & | getName () const |
| Accessor to the object name. More... | |
| void | setName (const std::string &n) |
| Set the name of this object. More... | |
| void | setName (const std::string &n, int counter) |
| Set the name of this object, adding an integer counter. More... | |
| std::string | getTypeName () const |
| Get the type name of this object (i.e. class and template types) More... | |
| virtual std::string | getClassName () const |
| Get the class name of this object. More... | |
| virtual std::string | getTemplateName () const final |
| Get the template type names (if any) used to instantiate this object. More... | |
| std::string | getNameSpaceName () const |
| Get the template type names (if any) used to instantiate this object. More... | |
| void | setDefinitionSourceFileName (const std::string &sourceFileName) |
| Set the source filename (where the component is implemented) More... | |
| const std::string & | getDefinitionSourceFileName () const |
| Get the source filename (where the component is implemented) More... | |
| void | setDefinitionSourceFilePos (const int) |
| Set the source location (where the component is implemented) More... | |
| int | getDefinitionSourceFilePos () const |
| Get the source location (where the component is implemented) More... | |
| void | setInstanciationSourceFileName (const std::string &sourceFileName) |
| const std::string & | getInstanciationSourceFileName () const |
| void | setInstanciationSourceFilePos (const int) |
| int | getInstanciationSourceFilePos () const |
| void | addMessage (const sofa::helper::logging::Message &m) const |
| size_t | countLoggedMessages (sofa::helper::logging::Message::TypeSet t=sofa::helper::logging::Message::AnyTypes) const |
| const std::deque< sofa::helper::logging::Message > & | getLoggedMessages () const |
| const std::string | getLoggedMessagesAsString (sofa::helper::logging::Message::TypeSet t=sofa::helper::logging::Message::AnyTypes) const |
| void | clearLoggedMessages () const |
| bool | notMuted () const |
| const sofa::core::objectmodel::TagSet & | getTags () const |
| Represents the subsets the object belongs to. More... | |
| bool | hasTag (Tag t) const |
| Return true if the object belong to the given subset. More... | |
| void | addTag (Tag t) |
| Add a subset qualification to the object. More... | |
| void | removeTag (Tag t) |
| Remove a subset qualification to the object. More... | |
| ComponentState | getComponentState () const |
| bool | isComponentStateValid () const |
| bool | isComponentStateInvalid () const |
| SOFA_ATTRIBUTE_DEPRECATED__TOBASECONSTRAINT () virtual const behavior | |
| SOFA_ATTRIBUTE_DEPRECATED__TOBASEOBJECT () virtual const objectmodel | |
| virtual bool | parseField (const std::string &attribute, const std::string &value) |
| Assign one field value (Data or Link) More... | |
| virtual bool | hasField (const std::string &attribute) const |
| Check if a given Data field or Link exists. More... | |
| void | parseFields (const std::list< std::string > &str) |
| Assign the field values stored in the given list of name + value pairs of strings. More... | |
| virtual void | parseFields (const std::map< std::string, std::string * > &str) |
| Assign the field values stored in the given map of name -> value pairs. More... | |
| void | writeDatas (std::ostream &out, const std::string &separator=" ") |
| BaseData * | findData (const std::string &name) const |
| std::vector< BaseData * > | findGlobalField (const std::string &name) const |
| Find data fields given a name: several can be found as we look into the alias map. More... | |
| BaseLink * | findLink (const std::string &name) const |
| std::vector< BaseLink * > | findLinks (const std::string &name) const |
| Find link fields given a name: several can be found as we look into the alias map. More... | |
| virtual void | updateLinks (bool logErrors=true) |
| Update pointers in case the pointed-to objects have appeared. More... | |
| template<class T > | |
| BaseData::BaseInitData | initData (::sofa::core::objectmodel::Data< T > *field, const char *n, const char *help, ::sofa::core::objectmodel::BaseData::DataFlags dataflags) |
| Helper method used to initialize a data field containing a value of type T. More... | |
| template<class T > | |
| BaseData::BaseInitData | initData (Data< T > *field, const char *n, const char *help, bool isDisplayed=true, bool isReadOnly=false) |
| Helper method used to initialize a data field containing a value of type T. More... | |
| template<class T > | |
| Data< T >::InitData | initData (Data< T > *field, const T &value, const char *n, const char *help, bool isDisplayed=true, bool isReadOnly=false) |
| Helper method used to initialize a data field containing a value of type T. More... | |
| void | addData (BaseData *f, const std::string &name) |
| void | addData (BaseData *f) |
| void | removeData (BaseData *f) |
| Remove a data field. More... | |
| void | addAlias (BaseData *field, const char *alias) |
| Add an alias to a Data. More... | |
| void | addLink (BaseLink *l) |
| Add a link. More... | |
| void | addAlias (BaseLink *link, const char *alias) |
| Add an alias to a Link. More... | |
| const VecData & | getDataFields () const |
| Accessor to the vector containing all the fields of this object. More... | |
| const MapData & | getDataAliases () const |
| Accessor to the map containing all the aliases of this object. More... | |
| const VecLink & | getLinks () const |
| Accessor to the vector containing all the fields of this object. More... | |
| const MapLink & | getLinkAliases () const |
| Accessor to the map containing all the aliases of this object. More... | |
| virtual bool | findDataLinkDest (BaseData *&ptr, const std::string &path, const BaseLink *link) |
| template<class T > | |
| bool | findLinkDest (T *&ptr, const std::string &path, const BaseLink *link) |
Additional Inherited Members | |
Public Attributes inherited from sofa::core::objectmodel::BaseComponent | |
| Data< bool > | f_listening |
| if true, handle the events, otherwise ignore the events More... | |
Public Attributes inherited from sofa::core::objectmodel::Base | |
| std::vector< lifecycle::DeprecatedData * > | m_oldAttributes |
| Data< int > | d_messageLogCount |
| Data< std::string > | name |
| Name of the object. More... | |
| Data< bool > | f_printLog |
| if true, emits extra messages at runtime. More... | |
| Data< sofa::core::objectmodel::TagSet > | f_tags |
| list of the subsets the object belongs to More... | |
| Data< sofa::type::BoundingBox > | f_bbox |
| this object bounding box More... | |
| Data< sofa::core::objectmodel::ComponentState > | d_componentState |
| The state of the component among (Dirty, Valid, Undefined, Loading, Invalid). More... | |
| std::string | m_definitionSourceFileName {""} |
| int | m_definitionSourceFilePos {-1} |
| std::string | m_instanciationSourceFileName {""} |
| int | m_instanciationSourceFilePos {-1} |
Static Public Attributes inherited from sofa::core::topology::Topology | |
| static constexpr Index | InvalidID = sofa::InvalidID |
| static const auto | InvalidSet = sofa::topology::InvalidSet |
| static constexpr auto | InvalidEdge = sofa::topology::InvalidEdge |
| static constexpr auto | InvalidTriangle = sofa::topology::InvalidTriangle |
| static constexpr auto | InvalidQuad = sofa::topology::InvalidQuad |
| static constexpr auto | InvalidTetrahedron = sofa::topology::InvalidTetrahedron |
| static constexpr auto | InvalidPrism = sofa::topology::InvalidPrism |
| static constexpr auto | InvalidHexahedron = sofa::topology::InvalidHexahedron |
| static constexpr auto | InvalidPyramid = sofa::topology::InvalidPyramid |
Static Public Member Functions inherited from sofa::core::objectmodel::BaseComponent | |
| template<class T > | |
| static bool | canCreate (T *, BaseContext *, BaseObjectDescription *) |
| Pre-construction check method called by ObjectFactory. More... | |
| template<class T > | |
| static T::SPtr | create (T *, BaseContext *context, BaseObjectDescription *arg) |
| Construction method called by ObjectFactory. More... | |
Static Public Member Functions inherited from sofa::core::objectmodel::Base | |
| static const BaseClass * | GetClass () |
| template<class T > | |
| static std::string | shortName (const T *ptr=nullptr, BaseObjectDescription *=nullptr) |
|
protected |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
protected |
|
virtual |
|
virtual |
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Provides an iterator on the first element in the list of TopologyChange objects.
Management of topological changes and state changes
Reimplemented in sofa::core::topology::TopologyContainer.
|
virtual |
Provides an iterator on the first element in the list of StateChange objects.
Reimplemented in sofa::core::topology::TopologyContainer.
|
inlinevirtual |
get information about connexity of the mesh
Checks if the topology has only one connected component.
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer, sofa::component::topology::container::dynamic::TetrahedronSetTopologyContainer, sofa::component::topology::container::dynamic::QuadSetTopologyContainer, sofa::component::topology::container::dynamic::HexahedronSetTopologyContainer, sofa::component::topology::container::dynamic::EdgeSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
inlinevirtual |
Checks if the topology is coherent.
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer, sofa::component::topology::container::dynamic::TetrahedronSetTopologyContainer, sofa::component::topology::container::dynamic::QuadSetTopologyContainer, sofa::component::topology::container::dynamic::PointSetTopologyContainer, sofa::component::topology::container::dynamic::HexahedronSetTopologyContainer, and sofa::component::topology::container::dynamic::EdgeSetTopologyContainer.
|
virtual |
Procedural creation methods
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer, sofa::component::topology::container::dynamic::TetrahedronSetTopologyContainer, sofa::component::topology::container::dynamic::QuadSetTopologyContainer, sofa::component::topology::container::dynamic::PointSetTopologyContainer, sofa::component::topology::container::dynamic::MultilevelHexahedronSetTopologyContainer, sofa::component::topology::container::dynamic::HexahedronSetTopologyContainer, sofa::component::topology::container::dynamic::EdgeSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
inlinevirtual |
Method to be overriden by child class to create all the topology buffers.
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer, sofa::component::topology::container::dynamic::TetrahedronSetTopologyContainer, sofa::component::topology::container::dynamic::QuadSetTopologyContainer, sofa::component::topology::container::dynamic::HexahedronSetTopologyContainer, sofa::component::topology::container::dynamic::EdgeSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Provides an iterator on the last element in the list of TopologyChange objects.
Reimplemented in sofa::core::topology::TopologyContainer.
|
virtual |
Provides an iterator on the last element in the list of StateChange objects.
Reimplemented in sofa::core::topology::TopologyContainer.
|
virtual |
Returns the set of element indices connected to an input one (i.e. which can be reached by topological links)
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer, sofa::component::topology::container::dynamic::TetrahedronSetTopologyContainer, sofa::component::topology::container::constant::MeshTopology, and sofa::component::topology::container::dynamic::HexahedronSetTopologyContainer.
|
virtual |
Returns the index of the edge joining vertex v1 and vertex v2; returns InvalidID if no edge exists.
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
returns the index (either 0, 1 ,2 ,3, 4, 5, 6, 7, 8, 9, 10, 11) of the edge whose global index is edgeIndex. Returns -1 if none
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
returns the index (either 0, 1 ,2, 3) of the edge whose global index is edgeIndex. Returns -1 if none
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
returns the index (either 0, 1 ,2 ,3, 4, 5) of the edge whose global index is edgeIndex. Returns -1 if none
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
returns the index (either 0, 1 ,2) of the edge whose global index is edgeIndex. Returns -1 if none
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
pure virtual |
Complete sequence accessors
Implemented in sofa::core::topology::TopologyContainer, sofa::component::topology::container::dynamic::EdgeSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopologyContainer.
|
virtual |
Returns the set of edges adjacent to a given vertex.
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the set of edges adjacent to a given hexahedron.
Reimplemented in sofa::component::topology::container::dynamic::HexahedronSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the set of edges adjacent to a given quad.
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the set of edges adjacent to a given tetrahedron.
Reimplemented in sofa::component::topology::container::dynamic::TetrahedronSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the set of edges adjacent to a given triangle.
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the set of edges on the border of the triangulation.
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer.
|
virtual |
Returns the set of element indices adjacent to a given element (i.e. sharing a link)
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer, sofa::component::topology::container::dynamic::TetrahedronSetTopologyContainer, sofa::component::topology::container::constant::MeshTopology, and sofa::component::topology::container::dynamic::HexahedronSetTopologyContainer.
|
virtual |
Returns the set of element indices adjacent to a given list of elements (i.e. sharing a link)
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
inline |
Generic elements' accessor.
Relies on the virtual method getElementsRaw. If this method is not implemented by the derived class, or if the element type is not supported by the derived class, the method returns an empty element list.
| ElementType | the type of elements, e.g. sofa::geometry::Edge |
|
inlineprotectedvirtualnoexcept |
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer, sofa::component::topology::container::dynamic::TetrahedronSetTopologyContainer, sofa::component::topology::container::dynamic::QuadSetTopologyContainer, sofa::component::topology::container::dynamic::HexahedronSetTopologyContainer, sofa::component::topology::container::dynamic::EdgeSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopologyContainer.
|
inlinevirtual |
|
pure virtual |
|
virtual |
Returns the set of hexahedra adjacent to a given edge.
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the set of hexahedra adjacent to a given quad.
Reimplemented in sofa::component::topology::container::dynamic::HexahedronSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the set of hexahedra adjacent to a given vertex.
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the index of the hexahedron given eight vertex indices; returns InvalidID if no hexahedron exists.
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
inlinevirtual |
|
inline |
|
virtual |
Returns for each index (between 0 and 12) the two vertex indices that are adjacent to that edge.
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns for each index (between 0 and 5) the two vertex indices that are adjacent to that edge.
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns for each index (between 0 and 6) the four vertices indices that are adjacent to that quad.
Reimplemented in sofa::component::topology::container::dynamic::HexahedronSetTopologyContainer.
|
virtual |
Returns for each index (between 0 and 3) the three local vertices indices that are adjacent to that triangle.
Reimplemented in sofa::component::topology::container::dynamic::TetrahedronSetTopologyContainer.
|
inlinevirtual |
Random accessors
| Size sofa::core::topology::BaseMeshTopology::getNbElements | ( | ) |
Returns the number of elements of a specific type.
| ElementType | The type of element (e.g., sofa::geometry::Triangle, sofa::geometry::Tetrahedron) |
Example:
| SOFA_CORE_API Size sofa::core::topology::BaseMeshTopology::getNbElements | ( | ) |
| SOFA_CORE_API Size sofa::core::topology::BaseMeshTopology::getNbElements | ( | ) |
| SOFA_CORE_API Size sofa::core::topology::BaseMeshTopology::getNbElements | ( | ) |
| SOFA_CORE_API Size sofa::core::topology::BaseMeshTopology::getNbElements | ( | ) |
| SOFA_CORE_API Size sofa::core::topology::BaseMeshTopology::getNbElements | ( | ) |
| SOFA_CORE_API Size sofa::core::topology::BaseMeshTopology::getNbElements | ( | ) |
| SOFA_CORE_API Size sofa::core::topology::BaseMeshTopology::getNbElements | ( | ) |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Bridge from old functions (using Tetra/Tetras and Hexa/Hexas) to new ones
|
inlinevirtual |
|
inlinevirtual |
Returns the number of connected component.
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer, sofa::component::topology::container::dynamic::TetrahedronSetTopologyContainer, sofa::component::topology::container::dynamic::QuadSetTopologyContainer, sofa::component::topology::container::dynamic::HexahedronSetTopologyContainer, sofa::component::topology::container::dynamic::EdgeSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the set of points on the border of the triangulation.
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer.
|
pure virtual |
|
inlineoverridevirtual |
Reimplemented from sofa::core::topology::Topology.
|
inlineoverridevirtual |
Reimplemented from sofa::core::topology::Topology.
|
inlinevirtual |
|
pure virtual |
|
inlineoverridevirtual |
Reimplemented from sofa::core::topology::Topology.
|
virtual |
Returns the index of the quad given four vertex indices; returns InvalidID if no quad exists.
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
returns the index (either 0, 1 ,2 ,3, 4, 5) of the quad whose global index is quadIndex. Returns -1 if none
Reimplemented in sofa::component::topology::container::dynamic::HexahedronSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
pure virtual |
|
virtual |
Returns the set of quads adjacent to a given edge.
Returns the set of quad adjacent to a given edge.
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the set of quads adjacent to a given vertex.
Returns the set of quad adjacent to a given vertex.
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the set of quads adjacent to a given hexahedron.
Returns the set of quad adjacent to a given hexahedron.
Reimplemented in sofa::component::topology::container::dynamic::HexahedronSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
inlinevirtual |
Get the current revision of this mesh. This can be used to detect changes, however topological changes event should be used whenever possible.
Reimplemented in sofa::core::topology::TopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
pure virtual |
|
virtual |
Returns the set of tetrahedra adjacent to a given edge.
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the set of tetrahedra adjacent to a given triangle.
Reimplemented in sofa::component::topology::container::dynamic::TetrahedronSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the set of tetrahedra adjacent to a given vertex.
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the index of the tetrahedron given four vertex indices; returns InvalidID if no tetrahedron exists.
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
inlinevirtual |
|
pure virtual |
Type of higher topology element contains in this container.
Implemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer, sofa::component::topology::container::dynamic::TetrahedronSetTopologyContainer, sofa::component::topology::container::dynamic::QuadSetTopologyContainer, sofa::component::topology::container::dynamic::PointSetTopologyContainer, sofa::component::topology::container::dynamic::HexahedronSetTopologyContainer, sofa::component::topology::container::dynamic::EdgeSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
inlinevirtual |
|
virtual |
Returns the index of the triangle given three vertex indices; returns InvalidID if no triangle exists.
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
virtual |
returns the index (either 0, 1 ,2 ,3) of the triangle whose global index is triangleIndex. Returns -1 if none
Reimplemented in sofa::component::topology::container::dynamic::TetrahedronSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
pure virtual |
|
virtual |
Returns the set of triangles adjacent to a given edge.
Returns the set of triangle adjacent to a given edge.
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the set of triangles adjacent to a given vertex.
Returns the set of triangle adjacent to a given vertex.
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the set of triangles adjacent to a given tetrahedron.
Returns the set of triangle adjacent to a given tetrahedron.
Reimplemented in sofa::component::topology::container::dynamic::TetrahedronSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the set of triangles on the border of the triangulation.
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer.
|
virtual |
returns the index (either 0, 1 ,2, 3, 4, 5, 6, or 7) of the vertex whose global index is vertexIndex. Returns -1 if none
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
returns the index (either 0, 1 ,2 or 3) of the vertex whose global index is vertexIndex. Returns -1 if none
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
returns the index (either 0, 1 ,2 or 3) of the vertex whose global index is vertexIndex. Returns -1 if none
Reimplemented in sofa::component::topology::container::constant::MeshTopology.
|
virtual |
returns the index (either 0, 1 ,2 or 3) of the vertex whose global index is vertexIndex. Returns -1 if none
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
|
virtual |
Returns the set of vertices adjacent to a given vertex (i.e. sharing an edge)
|
inlineoverridevirtual |
Reimplemented from sofa::core::topology::Topology.
|
overridevirtual |
Initialization method called at graph creation and modification, during top-down traversal.
Reimplemented from sofa::core::objectmodel::BaseComponent.
Reimplemented in sofa::core::topology::TopologyContainer.
|
overridevirtual |
the component can insert itself directly in the right sequence in the Node so the Node does not have to test its type against all known types
Reimplemented from sofa::core::objectmodel::BaseComponent.
Reimplemented in sofa::core::topology::TopologyContainer.
Load the topology from a file.
The default implementation supports the following formats: obj, gmsh, mesh (custom simple text file), xs3 (deprecated description of mass-springs networks).
|
overridevirtual |
the component can remove itself directly in the right sequence in the Node so the Node does not have to test its type against all known types
Reimplemented from sofa::core::objectmodel::BaseComponent.
Reimplemented in sofa::core::topology::TopologyContainer.
|
virtual |
Will change order of vertices in triangle: t[1] <=> t[2].
Reimplemented in sofa::component::topology::container::dynamic::TriangleSetTopologyContainer, and sofa::component::topology::container::constant::MeshTopology.
| sofa::core::topology::BaseMeshTopology::SOFA_ABSTRACT_CLASS | ( | BaseMeshTopology | , |
| core::topology::Topology | |||
| ) |