Class: Sketchup::Curve
Overview
The Curve class is used by SketchUp to unite a series of Edge objects into one conceptual entity. Since SketchUp is a surface modeler, all circles, arcs, and arbitrary curves are really just edges that are bound together in sequence.
There is a subclass of Curve called ArcCurve, which is any curve that makes up part of a circle. You can think of ArcCurves as entities that were created with SketchUp’s Arc or Circle drawing tools and Curves as entities that were created with the Freehand drawing tool.
Direct Known Subclasses
Instance Method Summary collapse
-
#count_edges ⇒ Object
The count_edges method is used to retrieve the number of Edge objects that make up the Curve.
-
#each_edge ⇒ Object
The each_edge method is used to iterate through all of the Edge objects in the curve.
-
#edges ⇒ Object
The edges method is used to retrieve an array of Edge objects that make up the Curve.
-
#first_edge ⇒ Object
The first_edge method is used to retrieve the first edge of the curve.
- #is_polygon? ⇒ Boolean
-
#last_edge ⇒ Object
The last_edge method is used to retrieve the last edge of the curve.
-
#length ⇒ Object
The length method retrieves the length of the curve.
-
#move_vertices(point_array) ⇒ Object
The vertices method retrieves a collection of all vertices in a curve.
-
#vertices ⇒ Object
The vertices method retrieves a collection of all vertices in a curve.
Methods inherited from Entity
#add_observer, #attribute_dictionaries, #attribute_dictionary, #delete_attribute, #deleted?, #entityID, #get_attribute, #inspect, #model, #parent, #persistent_id, #remove_observer, #set_attribute, #to_s, #typename, #valid?
Instance Method Details
#count_edges ⇒ Object
The count_edges method is used to retrieve the number of Edge objects that make up the Curve.
37 38 |
# File 'SketchUp/Sketchup/Curve.rb', line 37 def count_edges end |
#each_edge ⇒ Object
The each_edge method is used to iterate through all of the Edge objects in the curve.
59 60 |
# File 'SketchUp/Sketchup/Curve.rb', line 59 def each_edge end |
#edges ⇒ Object
The edges method is used to retrieve an array of Edge objects that make up the Curve.
80 81 |
# File 'SketchUp/Sketchup/Curve.rb', line 80 def edges end |
#first_edge ⇒ Object
The first_edge method is used to retrieve the first edge of the curve.
100 101 |
# File 'SketchUp/Sketchup/Curve.rb', line 100 def first_edge end |
#is_polygon? ⇒ Boolean
118 119 |
# File 'SketchUp/Sketchup/Curve.rb', line 118 def is_polygon? end |
#last_edge ⇒ Object
The last_edge method is used to retrieve the last edge of the curve.
138 139 |
# File 'SketchUp/Sketchup/Curve.rb', line 138 def last_edge end |
#length ⇒ Object
The length method retrieves the length of the curve.
159 160 |
# File 'SketchUp/Sketchup/Curve.rb', line 159 def length end |
#move_vertices(point_array) ⇒ Object
The vertices method retrieves a collection of all vertices in a curve.
173 174 |
# File 'SketchUp/Sketchup/Curve.rb', line 173 def move_vertices(point_array) end |
#vertices ⇒ Object
The vertices method retrieves a collection of all vertices in a curve.
193 194 |
# File 'SketchUp/Sketchup/Curve.rb', line 193 def vertices end |