PatchData class to provide base patch generation from control points and caching for faster updates.
public var controlPoints:Array
public var generatedPatch:Array
nodes:Array
[read-write]Implementation
public function get nodes():Array
public function set nodes(value:Array):void
patchInfo:Array
[read-write]Implementation
public function get patchInfo():Array
public function set patchInfo(value:Array):void
uvs:Array
[read-write]Implementation
public function get uvs():Array
public function set uvs(value:Array):void
vertices:Array
[read-write]Implementation
public function get vertices():Array
public function set vertices(value:Array):void
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
public function build(refresh:Boolean = false):void
Parameters
| refresh:Boolean (default = false )
|
public function objClone(source:Object):*
Parameters
Returns