#include <GA_Topology.h>
Public Member Functions | |
| GA_Topology (GA_Detail &detail) | |
| ~GA_Topology () | |
| bool | isFull () const |
| Test whether all required attributes built. | |
| void | makeFull () |
| void | rebuildTopology (bool rebuild_topology=true) |
| void | makeMinimal () |
| bool | checkStorageChange () |
| void | registerAttribute (GA_Attribute *atr) |
| Called when a detail adds an attribute. | |
| void | unregisterAttribute (GA_Attribute *atr) |
| void | addVertex (GA_Offset vtx) |
| Functions to maintain topological information. | |
| void | addPoint (GA_Offset pt) |
| void | delPoint (GA_Offset pt) |
| void | delVertex (GA_Offset vtx) |
| void | wireVertexPoint (GA_Offset vtx, GA_Offset pt) |
| void | wireVertexPrimitive (GA_Offset vtx, GA_Offset prim) |
| bool | isPointUsed (GA_Offset pt) const |
| Test to see whether a point is used. | |
| void | makePointRef () |
| Make the attribute to store vertex->point reference (manditory). | |
| void | makePrimitiveRef () |
| Make the attribute to store vertex->primitive reference (optional). | |
| void | makeVertexRef () |
| GA_ATITopology * | getPointRef () const |
| GA_ATITopology * | getPrimitiveRef () const |
| GA_ATITopology * | getVertexRef () const |
| GA_ATITopology * | getVertexPrevRef () const |
| GA_ATITopology * | getVertexNextRef () const |
| bool | jsonSavePointRef (UT_JSONWriter &w, const GA_SaveMap &s) const |
| bool | jsonLoadPointRef (UT_JSONParser &p, const GA_LoadMap &s) |
| void | mergeRebuild (const GA_MergeMap &map) |
| void | mergeGrowCheckStorageChange (GA_Size sz) |
| void | defragmentElements (const GA_Defragment &defrag) |
| void | defragmentLinks (const GA_Defragment &defrag) |
Definition at line 35 of file GA_Topology.h.
| GA_Topology::GA_Topology | ( | GA_Detail & | detail | ) |
| GA_Topology::~GA_Topology | ( | ) |
| void GA_Topology::addPoint | ( | GA_Offset | pt | ) |
| void GA_Topology::addVertex | ( | GA_Offset | vtx | ) |
Functions to maintain topological information.
| bool GA_Topology::checkStorageChange | ( | ) |
The topology attributes try to store minimal amounts of information. That is, if there are only 4 points in the geometry, we won't store the indices as 64-bit integers. This method will change the storage attributes if needed.
| void GA_Topology::defragmentElements | ( | const GA_Defragment & | defrag | ) |
Called when defragmenting offset lists
| void GA_Topology::defragmentLinks | ( | const GA_Defragment & | defrag | ) |
Called when defragmenting offset lists
| void GA_Topology::delPoint | ( | GA_Offset | pt | ) |
| void GA_Topology::delVertex | ( | GA_Offset | vtx | ) |
| GA_ATITopology* GA_Topology::getPointRef | ( | ) | const [inline] |
Definition at line 103 of file GA_Topology.h.
| GA_ATITopology* GA_Topology::getPrimitiveRef | ( | ) | const [inline] |
Definition at line 104 of file GA_Topology.h.
| GA_ATITopology* GA_Topology::getVertexNextRef | ( | ) | const [inline] |
Definition at line 107 of file GA_Topology.h.
| GA_ATITopology* GA_Topology::getVertexPrevRef | ( | ) | const [inline] |
Definition at line 106 of file GA_Topology.h.
| GA_ATITopology* GA_Topology::getVertexRef | ( | ) | const [inline] |
Definition at line 105 of file GA_Topology.h.
| bool GA_Topology::isFull | ( | ) | const |
Test whether all required attributes built.
| bool GA_Topology::isPointUsed | ( | GA_Offset | pt | ) | const |
Test to see whether a point is used.
| bool GA_Topology::jsonLoadPointRef | ( | UT_JSONParser & | p, | |
| const GA_LoadMap & | s | |||
| ) |
| bool GA_Topology::jsonSavePointRef | ( | UT_JSONWriter & | w, | |
| const GA_SaveMap & | s | |||
| ) | const |
| void GA_Topology::makeFull | ( | ) | [inline] |
This method constructs the topology attributes for the detail. It should only be called by GA_Detail. Please use rebuildTopology() from other code.
Definition at line 47 of file GA_Topology.h.
| void GA_Topology::makeMinimal | ( | ) |
makeMinimal() deletes the non-essential topology attributes. All optional attributes (the options which allow reverse lookup of elements) are deleted. The attribute to map vertex to point (myPointRef) remains untouched.
| void GA_Topology::makePointRef | ( | ) |
Make the attribute to store vertex->point reference (manditory).
| void GA_Topology::makePrimitiveRef | ( | ) |
Make the attribute to store vertex->primitive reference (optional).
| void GA_Topology::makeVertexRef | ( | ) |
Make the attributes to store point->vertex references (optional) Note: This method will create 3 attributes
| void GA_Topology::mergeGrowCheckStorageChange | ( | GA_Size | sz | ) |
| void GA_Topology::mergeRebuild | ( | const GA_MergeMap & | map | ) |
Make any changes to the topology attributes to accomadate the new data (i.e. change their sizes if need be). This method is called before the merge begins.
| void GA_Topology::rebuildTopology | ( | bool | rebuild_topology = true |
) |
Re-create the topology links. This method will re-create all the topological information. If the rebuild_topology option is true, then any missing attributes will be created.
| void GA_Topology::registerAttribute | ( | GA_Attribute * | atr | ) |
Called when a detail adds an attribute.
| void GA_Topology::unregisterAttribute | ( | GA_Attribute * | atr | ) |
1.5.9