Packagealternativa.engine3d.objects
Classpublic class Surface
InheritanceSurface Inheritance Object

Surface is a set of triangles within Mesh object or instance of kindred class like Skin. Surface is a entity associated with one material, so different surfaces within one mesh can have different materials.



Public Properties
 PropertyDefined By
  indexBegin : int = 0
Index of the vertex with which surface starts within index buffer of object's geometry.
Surface
  material : Material
Material.
Surface
  numTriangles : int = 0
Number of triangles which form this surface.
Surface
Public Methods
 MethodDefined By
  
Returns a copy of this surface.
Surface
Property Detail
indexBeginproperty
public var indexBegin:int = 0

Index of the vertex with which surface starts within index buffer of object's geometry.

See also

materialproperty 
public var material:Material

Material.

numTrianglesproperty 
public var numTriangles:int = 0

Number of triangles which form this surface.

Method Detail
clone()method
public function clone():Surface

Returns a copy of this surface.

Returns
Surface — A copy of this surface.