class Vertex |
Parent: Entity |
|
Methods:common_edge, curve_interior?, edges, faces, loops, position, used_by? |
|
Sample Code: vertextests.rb |
|
Instance Methods |
common_edge |
The common_edge method is used to find a common edge that is defined by this vertex and another vertex |
Syntax: |
edge = vertex.common_edge vertex2 |
Arguments: |
vertex2 - a Vertex object |
Return Value: |
edge - an Edge object common to both vertices if successful. Returns nil if there is no edge between the two vertices. |
Comments: |
|
Example: |
edge = entities[0] end |
curve_interior? |
The curve_interior? method is used to determine if this vertex is on the interior of a curve. |
Syntax: |
status - vertex.curve_interior? |
Arguments: |
|
Return Value: |
status - true if it is used by exactly two edges which are both part of the same curve. |
Comments: |
|
Example: |
edge = entities[0] |
edges |
The edges method is used to retrieve an Array of edges that use the Vertex. |
Syntax: |
edges = vertex.edges |
Arguments: |
|
Return Value: |
edges - an Array of edge objects if successful |
Comments: |
|
Example: |
edge = entities[0] |
faces |
The faces method is used to retrieve an Array of faces that use the vertex. |
Syntax: |
faces = vertex.faces |
Arguments: |
|
Return Value: |
faces - an Array of faces that use the vertex if successful |
Comments: |
|
Example: |
edge = entities[0] |
loops |
The loops method is used to retrieve an Array of loops that use the vertex. |
Syntax: |
loops = vertex.loops |
Arguments: |
|
Return Value: |
loops - an Array of loops that use the vertex if successful |
Comments: |
|
Example: |
edge = entities[0] |
position |
The position method is used to retrieve the Point3d position of a vertex. |
Syntax: |
point = vertex.position |
Arguments: |
|
Return Value: |
point - a Point3d object representing the position of the vertex if successful |
Comments: |
Returns: a Point3d. |
Example: |
edge = entities[0] |
used_by? |
The used_by? method is used to determine if the Vertex is used by a given edge or face. |
Syntax: |
vertex.used_by? edge vertex.used_by? face |
Arguments: |
|
Return Value: |
status - true if the vertex is used by the edge or face. False if the vertex is not used by the edge or face. |
Comments: |
|
Example: |
edge = entities[0] |