Package | away3d.core.base |
Class | public class Segment |
Inheritance | Segment Element |
See also
Property | Defined by | ||
---|---|---|---|
commands : Vector
Returns an array of drawing command strings that make up the 3d element.
| Element | ||
extra : Object
An optional untyped object that can contain used-defined properties.
| Element | ||
material : Material
Defines the material of the segment.
| Segment | ||
parent : Geometry
Defines the parent 3d object of the segment.
| Element | ||
pathCommands : Array
Returns an array of drawing command objects that are used by the face.
| Element | ||
segmentVO : SegmentVO | Segment | ||
uvs : Vector
Returns an array of uv objects that are used by the element.
| Element | ||
v0 : Vertex
Defines the v0 vertex of the segment.
| Segment | ||
v1 : Vertex
Defines the v1 vertex of the segment.
| Segment | ||
vertices : Vector
Returns an array of vertex objects that make up the 3d element.
| Element | ||
visible : Boolean
Determines whether the 3d element is visible in the scene.
| Element |
Method | Defined by | ||
---|---|---|---|
Creates a new
Segment object. | Segment | ||
curveTo(cx:Number, cy:Number, cz:Number, ex:Number, ey:Number, ez:Number):void
| Segment | ||
Segment | |||
Segment | |||
lineTo(x:Number, y:Number, z:Number):void
| Segment | ||
moveTo(x:Number, y:Number, z:Number):void
| Segment |
material | property |
material:Material
[read-write]Defines the material of the segment.
Implementation public function get material():Material
public function set material(value:Material):void
segmentVO | property |
public var segmentVO:SegmentVO
v0 | property |
v0:Vertex
[read-write]Defines the v0 vertex of the segment.
Implementation public function get v0():Vertex
public function set v0(value:Vertex):void
v1 | property |
v1:Vertex
[read-write]Defines the v1 vertex of the segment.
Implementation public function get v1():Vertex
public function set v1(value:Vertex):void
Segment | () | constructor |
public function Segment(v0:Vertex = null, v1:Vertex = null, material:Material = null)
Parameters
v0:Vertex (default = null ) — The first vertex object of the segment
|
|
v1:Vertex (default = null ) — The second vertex object of the segment
|
|
material:Material (default = null ) — [optional] The material used by the segment to render
|
curveTo | () | method |
public function curveTo(cx:Number, cy:Number, cz:Number, ex:Number, ey:Number, ez:Number):void
Parameters
cx:Number |
|
cy:Number |
|
cz:Number |
|
ex:Number |
|
ey:Number |
|
ez:Number |
defineSingleCurve | () | method |
public function defineSingleCurve(start:Vertex, control:Vertex, end:Vertex):void
Parameters
start:Vertex |
|
control:Vertex |
|
end:Vertex |
drawPath | () | method |
lineTo | () | method |
public function lineTo(x:Number, y:Number, z:Number):void
Parameters
x:Number |
|
y:Number |
|
z:Number |
moveTo | () | method |
public function moveTo(x:Number, y:Number, z:Number):void
Parameters
x:Number |
|
y:Number |
|
z:Number |