Packageaway3d.primitives.data
Classpublic class PatchData
InheritancePatchData Inheritance Object

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


Implementation
    public function get nodes():Array
    public function set nodes(value:Array):void
patchInfoproperty 
patchInfo:Array


Implementation
    public function get patchInfo():Array
    public function set patchInfo(value:Array):void
uvsproperty 
uvs:Array


Implementation
    public function get uvs():Array
    public function set uvs(value:Array):void
verticesproperty 
vertices:Array


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)

Creates a new PatchData object to be used in a BezierPatch primitive.

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####
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
*