Topologic
0.8.9
|
A Topology is an abstract superclass that includes constructors, properties and methods used by other subclasses that extend it. More...
#include <Topology.h>
Public Member Functions | |
Topology ^ | AddContents (List< Topology^>^ contentTopologies, int typeFilter) |
Adds a list of Topologies as contents (non-constituent members) to another Topology of a specific type. If the type filter is 0, the contents will be added to the parent topology. Otherwise, the contents will be added to the closest sub-topology which matches the filter. More... | |
Topology ^ | RemoveContent (Topology^ contentTopology) |
Removes a content (non-constituent member) from a Topology. More... | |
Topology ^ | RemoveContents (List< Topology^>^ contentTopologies) |
Removes contents (non-constituent members) from a Topology. More... | |
Topology ^ | AddApertures (System::Collections::Generic::IEnumerable< Topology^>^ apertureTopologies) |
Adds Apertures to a Topology. More... | |
List< Topology^> ^ | SharedTopologies (Topology^ topology, int typeFilter) |
Returns the shared Topologies between the input Topology and another Topology. More... | |
Topology ^ | Difference (Topology^ topology) |
Performs the Difference operation between the input Topology and another Topology. More... | |
Topology ^ | Impose (Topologic::Topology^ tool) |
Imposes another Topology on the input Topology. More... | |
Topology ^ | Imprint (Topology^ tool) |
Imprints another Topology on the input Topology. More... | |
Topology ^ | Intersect (Topology^ topology) |
Performs the Intersection operation between the input Topology and another Topology. More... | |
Topology ^ | Merge (Topology^ topology) |
Merges the input Topology and another Topology. More... | |
Topology ^ | SelfMerge () |
Merges the sub-topologies of the input Topology. More... | |
Topology ^ | Slice (Topology^ tool) |
Slices the input Topology with another Topology. More... | |
Topology ^ | Divide (Topology^ tool) |
Divides the input Topology with another Topology. More... | |
Topology ^ | Union (Topology^ topology) |
Unions the input Topology and another Topology. More... | |
Topology ^ | XOR (Topology^ topology) |
Performs an XOR operation between the input Topology and another Topology. More... | |
bool | ExportToBRep (String^ path) |
Exports a Topology to a BRep file (.brep). More... | |
String ^ | Analyze () |
Prints the topological information of a Topology. More... | |
bool | IsSame (Topology^ topology) |
Checks if two Topologies are the same. NOTE: This is a pointer check, not a topological or a geometry one. More... | |
Topology ^ | ClosestSimplestSubshape (Topology^ selector) |
Returns the sub-topology that is the closest to the selector and the simplest (i.e. has the lowest dimensionality). More... | |
Topology ^ | SelectSubtopology (Vertex^ selector, int typeFilter) |
Returns the sub-topology that is the closest to the selector Vertex and of a specific type. More... | |
Topology ^ | ShallowCopy () |
Copies a Topology without its contents. More... | |
Topology ^ | SetDictionary (Dictionary< String^, Object^>^ dictionary) |
Sets a dictionary for a Topology. More... | |
Topology ^ | SetDictionaries (List< Vertex^>^ selectors, List< Dictionary< String^, Object^>^>^ dictionaries, int typeFilter) |
Sets a list of dictionaries for a Topology. More... | |
Static Public Member Functions | |
static List< Topology^> ^ | ByVerticesIndices (System::Collections::Generic::IEnumerable< Vertex^>^ vertices, System::Collections::Generic::IEnumerable< System::Collections::Generic::List< int >^>^ vertexIndices) |
Creates a Topology by a list of Vertices and a 2D list of indices of the Vertices in the first argument. An array of 1 index makes a Vertex. An array of 2 indices makes an Edge. An array of 3 indices either makes a Wire, or, when the array has at least 4 vertices and the first index is the same as the last index, a Face will be created instead. NOTE: This node currently can only create planar Faces. More... | |
static Topology ^ | ByImportedBRep (String^ path) |
Imports a Topology from a BRep file (.brep). More... | |
static List< Topology^> ^ | Filter (List< Topology^>^ topologies, int typeFilter) |
Filters a list of Topologies by type. This methods returns a list of Topologies of the type specified in the typefilter. More... | |
Public Attributes | |
template<class T > | |
where | T: Topology T Copy() |
Copies a Topology and its contents. More... | |
Protected Member Functions | |
Object ^ | CleanupGeometryOutput (List< Object^>^ geometry) |
Protected Member Functions inherited from Topologic::TopologicalQuery | |
virtual std::shared_ptr< TopologicCore::TopologicalQuery > | GetCoreTopologicalQuery ()=0 |
Static Protected Member Functions | |
static Topology ^ | ByCoreTopology (const std::shared_ptr< TopologicCore::Topology > &kpCoreTopology) |
Properties | |
int | Dimensionality [get] |
Returns the dimensionality of the Topology. More... | |
Object^ | BasicGeometry [get] |
Creates a geometry from the Topology. More... | |
Object^ | Geometry [get] |
Creates a geometry from Topology. More... | |
List< Topology^>^ | Contents [get] |
Returns the contents (non-constituent members) of the input Topology. More... | |
List< Aperture^>^ | Apertures [get] |
Returns the Apertures of the input Topology. More... | |
List< Topology^>^ | SubContents [get] |
Returns the sub-contents (contents of the constituent members) of a Topology. More... | |
List< Context^>^ | Contexts [get] |
Returns the Topologies containing the input Topology as a content. More... | |
Vertex^ | CenterOfMass [get] |
Returns the center of mass of any Topology. More... | |
Vertex^ | Centroid [get] |
Returns the centroid of any Topology. More... | |
bool | IsReversed [get] |
List< Topology^>^ | SubTopologies [get] |
Returns all sub-topologies (immediate constituent members) of a Topology. More... | |
List< Shell^>^ | Shells [get] |
Returns the Shells constituent to the Topology. More... | |
List< Face^>^ | Faces [get] |
Returns the Faces constituent to the Topology. More... | |
List< Wire^>^ | Wires [get] |
Returns the Wires constituent to the Topology. More... | |
List< Edge^>^ | Edges [get] |
Returns the Edges constituent to the Topology. More... | |
List< Vertex^>^ | Vertices [get] |
Returns the Vertices constituent to the Topology. More... | |
List< Cell^>^ | Cells [get] |
Returns the Cells constituent to the Topology. More... | |
List< CellComplex^>^ | CellComplexes [get] |
Returns the CellComplexes constituent to the Topology. More... | |
String^ | TypeAsString [get] |
Returns the instance type as a string. More... | |
int | Type [get] |
Returns the type associated to the Topology. More... | |
System::Collections::Generic::Dictionary< String^, Object^>^ | Dictionary [get] |
Returns the dictionary of a Topology. More... | |
A Topology is an abstract superclass that includes constructors, properties and methods used by other subclasses that extend it.
Adds a list of Topologies as contents (non-constituent members) to another Topology of a specific type. If the type filter is 0, the contents will be added to the parent topology. Otherwise, the contents will be added to the closest sub-topology which matches the filter.
contentTopologies | The Topologies of the content |
typeFilter | The type of the context Topology |
String Topologic::Topology::Analyze | ( | ) |
|
static |
|
static |
Creates a Topology by a list of Vertices and a 2D list of indices of the Vertices in the first argument. An array of 1 index makes a Vertex. An array of 2 indices makes an Edge. An array of 3 indices either makes a Wire, or, when the array has at least 4 vertices and the first index is the same as the last index, a Face will be created instead. NOTE: This node currently can only create planar Faces.
vertices | A list of Vertices |
vertexIndices | A 2D list of the indices of the Vertices |
Returns the sub-topology that is the closest to the selector and the simplest (i.e. has the lowest dimensionality).
selector | A Topology |
bool Topologic::Topology::ExportToBRep | ( | String^ | path | ) |
Exports a Topology to a BRep file (.brep).
path | The path to the BRep file |
|
static |
Filters a list of Topologies by type. This methods returns a list of Topologies of the type specified in the typefilter.
topologies | A list of Topologies |
typeFilter | The type of the filtered Topologies |
Topology Topologic::Topology::Impose | ( | Topologic::Topology^ | tool | ) |
bool Topologic::Topology::IsSame | ( | Topology^ | topology | ) |
Checks if two Topologies are the same. NOTE: This is a pointer check, not a topological or a geometry one.
topology | Another Topology |
Topology Topologic::Topology::SelfMerge | ( | ) |
Merges the sub-topologies of the input Topology.
Topology Topologic::Topology::SetDictionaries | ( | List< Vertex^>^ | selectors, |
List< Dictionary< String^, Object^>^>^ | dictionaries, | ||
int | typeFilter | ||
) |
Topology Topologic::Topology::SetDictionary | ( | Dictionary< String^, Object^>^ | dictionary | ) |
Topology Topologic::Topology::ShallowCopy | ( | ) |
where Topologic::Topology::T |
|
get |
|
get |
Creates a geometry from the Topology.
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
Returns the dictionary of a Topology.
|
get |
|
get |
|
get |
|
get |
Creates a geometry from Topology.
|
get |
|
get |
|
get |
|
get |
|
get |
Returns the instance type as a string.
|
get |
|
get |