Class sandy.primitive.Line3D

Implemented Interfaces

Primitive3D

Description

Line3D

Line3D, or how to create a simple line in Sandy

Field Index

Inherited from Object3D

Inherited from Node

Method Index

new Line3D()
generate(), getPrimitiveName(), getSize(), getVertexList(), setBackSkin(), setSkin(), toString()

Inherited from Object3D

Inherited from Leaf

Inherited from Node

Constructor Detail

Line3D

public function Line3D(deb:Vector, fin:Vector)

Constructor

This is the constructor to call when you nedd to create a Line3D primitiv.

This method will create a complete object with vertex, and the faces.

Parameters

Method Detail

generate

public function generate(Void):Void

generate

Generate all is needed to construct the Line3D :

Specified By

generate() in sandy.primitive.Primitive3D

setSkin

public function setSkin(s:SimpleLineSkin, bOverWrite:Boolean):Boolean

Set a Skin to the Line3D.

This method will set the a new skin to the line, but the skin must be a SimpleLineSkin instance.

Parameters

bOverWriteBoolean, overwrite or not all specific Faces's Skin

Return

Boolean True to apply the skin to the non default faces skins , false otherwise (default).

Overrides

setSkin() in sandy.core.Object3D

setBackSkin

public function setBackSkin(s:SimpleLineSkin, bOverWrite:Boolean):Boolean

The setBackSkin is disabled for this object since it does not have a particular depth.

getPrimitiveName

public function getPrimitiveName(Void):String

getPrimitiveName() returns the string "Line3D"

Specified By

getPrimitiveName() in sandy.primitive.Primitive3D

toString

public function toString(Void):String

Description copied from Object3D

Represents the Object3D into a String.

Specified By

toString() in sandy.primitive.Primitive3D

Overrides

toString() in sandy.core.Object3D

getVertexList

public function getVertexList(Void):Array

getSize

public function getSize(Void):Vector

getSize() returns the number of vertices in a Line3D element. Returns vector where x, y, and z are all equal to the number of vertices in the line

Specified By

getSize() in sandy.primitive.Primitive3D