Class: ModraUp::EdgeUse
- Inherits:
-
ModraUp::Entity
- Object
- ModraUp::Entity
- ModraUp::EdgeUse
Overview
How to use an edge at a certain step on a face. Edges are not independently stored entities but are queried with the face ring. The parent class is ModraUp::Entity, not ModraUp::Drawingelement.
Instance Method Summary # collapse
-
#typename ⇒ String
typename + "EdgeUse"+.
-
#entityID ⇒ Integer
The entity ID within the current session.
-
#persistent_id ⇒ Integer
EdgeUse does not have a persistent ID, always 0 (consistent with SketchUp).
-
#parent ⇒ ModraUp::Model, ModraUp::ComponentDefinition
Parent model or definition.
-
#valid? ⇒ Boolean
Returns true if the corresponding face loop is still valid.
-
#deleted? ⇒ Boolean
Opposite of #valid?.
-
#attribute_dictionaries ⇒ nil
EdgeUse does not support attribute dictionaries.
-
#attribute_dictionary(name, create = false) ⇒ nil
EdgeUse does not support attribute dictionaries.
-
#set_attribute(dict_name, key, value) ⇒ Object
EdgeUse does not support attribute dictionaries.
-
#get_attribute(dict_name, key, default = nil) ⇒ Object
EdgeUse does not support attribute dictionaries, returns default.
-
#delete_attribute(dict_name, key = nil) ⇒ nil
EdgeUse does not support attribute dictionaries.
-
#edge ⇒ ModraUp::Edge, nil
This step uses the edge.
-
#next ⇒ ModraUp::EdgeUse
The next step on the ring.
-
#previous ⇒ ModraUp::EdgeUse
The previous step on the loop.
-
#reversed? ⇒ Boolean
Returns whether the edge's v0→v1 direction is reversed relative to the other edge.
-
#face ⇒ ModraUp::Face
The owning face.
-
#loop ⇒ ModraUp::Loop
Loop belonging edge.
-
#partners ⇒ Array<ModraUp::EdgeUse>
Usage of an edge on other faces.
-
#start_vertex_normal ⇒ Geom::Vector3d
The normal of the face at the start vertex.
-
#end_vertex_normal ⇒ Geom::Vector3d
The normal of the face at the end vertex.
Inherited from ModraUp::Entity
-
#add_observer(observer) ⇒ Boolean
Register a ModraUp::EntityObserver. Adding the same object a second time returns false. Locking, property, and material changes will dispatch an onChangeEntity event.
-
#remove_observer(observer) ⇒ Boolean
Remove the entity observer.
-
#model ⇒ ModraUp::Model
The model it belongs to.
-
#to_s ⇒ String
String form. Returns "#<Deleted Entity>” when the entity has been deleted.
-
#inspect ⇒ String
Same as #to_s.
Instance Method Details
edgeuse.typename ⇒ String
typename + "EdgeUse"+.
edgeuse.entityID ⇒ Integer
The entity ID within the current session.
edgeuse.persistent_id ⇒ Integer
EdgeUse does not have a persistent ID, always 0 (consistent with SketchUp).
edgeuse.parent ⇒ ModraUp::Model, ModraUp::ComponentDefinition
Parent model or definition.
edgeuse.valid? ⇒ Boolean
Returns true if the corresponding face loop is still valid.
edgeuse.deleted? ⇒ Boolean
Opposite of #valid?.
edgeuse.attribute_dictionaries ⇒ nil
EdgeUse does not support attribute dictionaries.
edgeuse.attribute_dictionary(name, create = false) ⇒ nil
EdgeUse does not support attribute dictionaries.
edgeuse.set_attribute(dict_name, key, value) ⇒ ...
EdgeUse does not support attribute dictionaries.
edgeuse.get_attribute(dict_name, key, default = nil) ⇒ Object
EdgeUse does not support attribute dictionaries, returns default.
edgeuse.delete_attribute(dict_name, key = nil) ⇒ nil
EdgeUse does not support attribute dictionaries.
edgeuse.edge ⇒ ModraUp::Edge, nil
This step uses the edge.
edgeuse.next ⇒ ModraUp::EdgeUse
The next step on the ring.
edgeuse.previous ⇒ ModraUp::EdgeUse
The previous step on the loop.
edgeuse.reversed? ⇒ Boolean
Returns whether the edge's v0→v1 direction is reversed relative to the other edge.
edgeuse.face ⇒ ModraUp::Face
The owning face.
edgeuse.loop ⇒ ModraUp::Loop
Loop belonging edge.
edgeuse.partners ⇒ Array<ModraUp::EdgeUse>
Usage of an edge on other faces.
edgeuse.start_vertex_normal ⇒ Geom::Vector3d
The normal of the face at the start vertex.
edgeuse.end_vertex_normal ⇒ Geom::Vector3d
The normal of the face at the end vertex.