Class: Sketchup::Curve
Relationships | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Entity
|
|
Instance Chain:
self,
Entity
|
|
Inherits: |
Sketchup::Entity
|
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.
Instance Attribute Summary
- #is_polygon? ⇒ Boolean readonly
Entity
- Inherited
Instance Method Summary
-
#count_edges ⇒ Object
The count_edges method is used to retrieve the number of
Edge
objects that make up theCurve
. -
#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 theCurve
. -
#first_edge ⇒ Object
The first_edge method is used to retrieve the first edge of the curve.
-
#last_edge ⇒ Object
The last_edge method is used to retrieve the last edge of the curve.
-
#length ⇒ Length
The length method retrieves the length of the curve.
-
#move_vertices(point_array) ⇒ Boolean
The #move_vertices method moves the vertices in the curve to points.
-
#vertices ⇒ Object
The vertices method retrieves a collection of all vertices in a curve.
Entity
- Inherited
#add_observer | The add_observer method is used to add an observer to the current object. |
#attribute_dictionaries | The attribute_dictionaries method is used to retrieve the |
#attribute_dictionary | The attribute_dictionary method is used to retrieve an attribute dictionary with a given name that is attached to an |
#delete_attribute | The |
#entityID | The entityID method is used to retrieve a unique ID assigned to an entity. |
#get_attribute | The |
#inspect | The |
#model | The model method is used to retrieve the model for the entity. |
#parent | The parent method is used to retrieve the parent of the entity. |
#persistent_id | The |
#remove_observer | The remove_observer method is used to remove an observer from the current object. |
#set_attribute | The set attribute is used to set the value of an attribute in an attribute dictionary with the given name. |
#to_s | The |
#typename | The typename method retrieves the type of the entity, which will be a string such as “Face”, “Edge”, or “Group”. |
Instance Attribute Details
#is_polygon? ⇒ Boolean
(readonly)
Instance Method Details
#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.
#last_edge ⇒ Object
The last_edge method is used to retrieve the last edge of the curve.
#length ⇒ Length
The length method retrieves the length of the curve.
#move_vertices(point_array) ⇒ Boolean
The #move_vertices
method moves the vertices in the curve to points.
#vertices ⇒ Object
The vertices method retrieves a collection of all vertices in a curve.