Packageaway3d.core.draw
Classpublic class PrimitiveVolumeBlock
ImplementsIPrimitiveConsumer

Volume block tree for storing drawing primitives

Public Properties
 PropertyDefined by
  clip : Clipping
Defines the clipping object to be used on the drawing primitives.
PrimitiveVolumeBlock
Public Methods
 MethodDefined by
  
blocks():Array
A list of volume blocks contained in the scene.
PrimitiveVolumeBlock
  
PrimitiveVolumeBlock
  
list():Array
A list of primitives that have been clipped.
PrimitiveVolumeBlock
  
Adds a drawing primitive to the primitive consumer
PrimitiveVolumeBlock
  
remove(pri:DrawPrimitive):void
removes a drawing primitive from the volume block.
PrimitiveVolumeBlock
Property detail
clipproperty
clip:Clipping  [read-write]

Defines the clipping object to be used on the drawing primitives.

Implementation
    public function get clip():Clipping
    public function set clip(value:Clipping):void
Method detail
blocks()method
public function blocks():Array

A list of volume blocks contained in the scene.

Returns
Array — An array containing all volume blocks in the scene.
getTouching()method 
public function getTouching(target:PrimitiveVolumeBlockNode):Array Parameters
target:PrimitiveVolumeBlockNode

Returns
Array
list()method 
public function list():Array

A list of primitives that have been clipped.

Returns
Array — An array containing the primitives to be rendered.
primitive()method 
public function primitive(pri:DrawPrimitive):void

Adds a drawing primitive to the primitive consumer

Parameters
pri:DrawPrimitive — The drawing primitive to add.
remove()method 
public function remove(pri:DrawPrimitive):void

removes a drawing primitive from the volume block.

Parameters
pri:DrawPrimitive — The drawing primitive to remove.
Wiki link
Click to go to the wiki page for ####WIKI####

Code examples

Comments