Segments Set


Inherited from Entity -> ObjectContainer3D -> Object3D -> NamedAssetBase -> EventDispatcher.


Can be created using method new:

Lib.Away3D.Entities.SegmentSet.new()

Create a new SegmentSet object.



Created Mesh object has properties:

animator

[read-only] IAnimator can be one of ParticleAnimator, SkeletonAnimator, SpriteSheetAnimator, UVAnimator, VertexAnimator

castsShadows

[read-only] true/false

indexData

[read-only] table of integers

material

MaterialBase

mouseEnabled

true/false

normalBufferOffset

[read-only] integer

numTriangles

[read-only] integer

secondaryUVBufferOffset

[read-only] integer

sourceEntity

[read-only] Entity

tangentBufferOffset

[read-only] integer

UVBufferOffset

[read-only] integer

UVData

[read-only] table of numbers

uvTransform

[read-only] Matrix

Matrix

[read-only] integer

vertexData

[read-only] table of numbers


methods:

addSegment(segment)

Adds a new segment to the SegmentSet.

segment - Segment.

dispose()

Dispose segments


getIndexBuffer(stage3DProxy)

Returns IndexBuffer3D

stage3DProxy - Stage3DProxy.

getSegment(index)

Returns a segment (Segment) object from a given index.

index - integer, index

removeAllSegments()

Empties the segmentSet from all its segments data


removeSegment(segment, dispose)

Removes a segment from the SegmentSet.

segment - The segment (Segment) to remove.

dispose - If the segment must be disposed as well. Default is false

removeSegmentByIndex(index, dispose)

Removes a segment from the SegmentSet by its index in the set.

Removing a Segment by an index when segment is unknown

index of the segment is relative to the order it was added to the segmentSet.

If a segment was removed from or added to the segmentSet, a segment index may have changed.

The index of each Segment is updated when one is added or removed.

If 2 segments are added, segment #1 has index 0, segment #2 has index 1

if segment #1 is removed, segment#2 will get index 0 instead of 1.

index - The index of the segment to remove

dispose - If the segment must be disposed as well. Default is false

updateSegment()

Update Segment

segment - Segment


Created with the Personal Edition of HelpNDoc: Write eBooks for the Kindle