Packageaway3d.primitives.data
Classpublic class PatchData

PatchData class to provide base patch generation from control points and caching for faster updates.

Public Properties
 PropertyDefined by
  controlPoints : Array
PatchData
  generatedPatch : Array
PatchData
  nodes : Array
PatchData
  patchInfo : Array
PatchData
  uvs : Array
PatchData
  vertices : Array
PatchData
Public Methods
 MethodDefined by
  
PatchData
(nodesPrms:Array, verticesPrms:Array, uvsPrms:Array, patchInfoPrms:Array, resize:Number = 1)
Creates a new PatchData object to be used in a BezierPatch primitive.
PatchData
  
build(refresh:Boolean = false):void
PatchData
  
objClone(source:Object):*
PatchData
Property detail
controlPointsproperty
public var controlPoints:Array
generatedPatchproperty 
public var generatedPatch:Array
nodesproperty 
nodes:Array  [read-write]Implementation
    public function get nodes():Array
    public function set nodes(value:Array):void
patchInfoproperty 
patchInfo:Array  [read-write]Implementation
    public function get patchInfo():Array
    public function set patchInfo(value:Array):void
uvsproperty 
uvs:Array  [read-write]Implementation
    public function get uvs():Array
    public function set uvs(value:Array):void
verticesproperty 
vertices:Array  [read-write]Implementation
    public function get vertices():Array
    public function set vertices(value:Array):void
Constructor detail
PatchData()constructor
public function PatchData(nodesPrms:Array, verticesPrms:Array, uvsPrms:Array, patchInfoPrms:Array, resize:Number = 1)Parameters
nodesPrms:Array — Multi-dimensional array of nodes that reference the vertices.
 
verticesPrms:Array — Multi-dimensional array of vertices that define the control points of the patches.
 
uvsPrms:Array — Multi-dimensional array of UV coordinates for the patches.
 
patchInfoPrms:Array — Array of parameters to define the patch.
 
resize:Number (default = 1) — Scaling parameter to resize the patch coordinates.
Init Parameters
Method detail
build()method
public function build(refresh:Boolean = false):void Parameters
refresh:Boolean (default = false)
objClone()method 
public function objClone(source:Object):* Parameters
source:Object

Returns
*
Wiki link
Click to go to the wiki page for 'away3d.primitives.data.PatchData'

Code examples

Comments