Packagecom.yogurt3d.core.geoms
Classpublic class Mesh
InheritanceMesh Inheritance EngineObject Inheritance Object
Implements IMesh
Subclasses AnimatedMesh, BoxMesh, ConeMesh, CylinderMesh, PlaneMesh, SphereMesh, TestTriangleMesh



Public Properties
 PropertyDefined By
  axisAlignedBoundingBox : AxisAlignedBoundingBox
[read-only]
Mesh
  boundingSphere : IBoundingSphere
[read-only]
Mesh
  indices : Vector.<uint>
Mesh
  normals : Vector.<Number>
Mesh
 InheritedsystemID : String
[read-only] Automatically assigned id.
EngineObject
  textureCoords : Vector.<Number>
Mesh
  triangleCenters : Vector.<Number>
[read-only]
Mesh
  triangleCount : int
[read-only]
Mesh
 InheriteduserID : String
Identification string can be assigned by developer to identify objects.
EngineObject
  uvt : Vector.<Number>
Mesh
  vertexCount : int
[read-only]
Mesh
  vertices : Vector.<Number>
Mesh
Public Methods
 MethodDefined By
  
Mesh(_initInternals:Boolean = true)
Mesh
  
calculateNormalsAndTesselate(_targetTriangleArea:Number, _maxSplittingPerTriangle:int = 0):void
Mesh
  
Mesh
  
[override]
Mesh
  
dispose():void
[override]
Mesh
  
getVertexByIndex(_index:int):Vector.<Number>
Mesh
 Inherited
renew():void
Renews object internals and resets properties of object.
EngineObject
  
setVertexByIndex(_index:int, _vertex:Vector.<Number>):void
Mesh
 Inherited
toString():String
EngineObject
Protected Methods
 MethodDefined By
 Inherited
EngineObject
  
[override]
Mesh
Property Detail
axisAlignedBoundingBoxproperty
axisAlignedBoundingBox:AxisAlignedBoundingBox  [read-only]


Implementation
    public function get axisAlignedBoundingBox():AxisAlignedBoundingBox
boundingSphereproperty 
boundingSphere:IBoundingSphere  [read-only]


Implementation
    public function get boundingSphere():IBoundingSphere
indicesproperty 
indices:Vector.<uint>


Implementation
    public function get indices():Vector.<uint>
    public function set indices(value:Vector.<uint>):void
m_aabbproperty 
YOGURT3D_INTERNAL var m_aabb:AxisAlignedBoundingBox

m_boundingSphereproperty 
YOGURT3D_INTERNAL var m_boundingSphere:BoundingSphere

m_indicesproperty 
YOGURT3D_INTERNAL var m_indices:Vector.<uint>

m_normalsproperty 
YOGURT3D_INTERNAL var m_normals:Vector.<Number>

m_triangleCentersproperty 
YOGURT3D_INTERNAL var m_triangleCenters:Vector.<Number>

m_triangleCountproperty 
YOGURT3D_INTERNAL var m_triangleCount:int

m_uvtproperty 
YOGURT3D_INTERNAL var m_uvt:Vector.<Number>

m_vertexCountproperty 
YOGURT3D_INTERNAL var m_vertexCount:int

m_verticesproperty 
YOGURT3D_INTERNAL var m_vertices:Vector.<Number>

normalsproperty 
normals:Vector.<Number>


Implementation
    public function get normals():Vector.<Number>
    public function set normals(value:Vector.<Number>):void
textureCoordsproperty 
textureCoords:Vector.<Number>


Implementation
    public function get textureCoords():Vector.<Number>
    public function set textureCoords(value:Vector.<Number>):void
triangleCentersproperty 
triangleCenters:Vector.<Number>  [read-only]


Implementation
    public function get triangleCenters():Vector.<Number>
triangleCountproperty 
triangleCount:int  [read-only]


Implementation
    public function get triangleCount():int
uvtproperty 
uvt:Vector.<Number>


Implementation
    public function get uvt():Vector.<Number>
    public function set uvt(value:Vector.<Number>):void
vertexCountproperty 
vertexCount:int  [read-only]


Implementation
    public function get vertexCount():int
verticesproperty 
vertices:Vector.<Number>


Implementation
    public function get vertices():Vector.<Number>
    public function set vertices(value:Vector.<Number>):void
Constructor Detail
Mesh()Constructor
public function Mesh(_initInternals:Boolean = true)



Parameters
_initInternals:Boolean (default = true)
Method Detail
calculateNormalsAndTesselate()method
public function calculateNormalsAndTesselate(_targetTriangleArea:Number, _maxSplittingPerTriangle:int = 0):void

Parameters

_targetTriangleArea:Number (default = NaN)
 
_maxSplittingPerTriangle:int (default = 0)

calculateTriangleCenters()method 
public function calculateTriangleCenters():void

clone()method 
override public function clone():IEngineObject

Returns
IEngineObject
dispose()method 
override public function dispose():void

getVertexByIndex()method 
public function getVertexByIndex(_index:int):Vector.<Number>

Parameters

_index:int

Returns
Vector.<Number>
setVertexByIndex()method 
public function setVertexByIndex(_index:int, _vertex:Vector.<Number>):void

Parameters

_index:int
 
_vertex:Vector.<Number>

trackObject()method 
override protected function trackObject():void