Mesh class

class Mesh

Inheritance
Implemented types
Implementers
Annotations
  • @JS()

Constructors

Mesh()
Mesh.args(String name, [Scene scene, Node parent, Mesh source, bool doNotCloneChildren, bool clonePhysicsImpostor])

Properties

absolutePosition Vector3
no setterinherited
absoluteRotationQuaternion Quaternion
no setterinherited
absoluteScaling Vector3
no setterinherited
actionManager AbstractActionManager
getter/setter pairinherited
alphaIndex num
getter/setter pairinherited
alwaysSelectAsActiveMesh bool
getter/setter pairinherited
animations List<Animation>
getter/setter pairinherited
applyFog bool
getter/setter pairinherited
areNormalsFrozen bool
no setter
behaviors List<Behavior<Node>>
no setterinherited
billboardMode num
getter/setter pairinherited
BILLBOARDMODE_ALL num
no setterinherited
BILLBOARDMODE_NONE num
no setterinherited
BILLBOARDMODE_USE_POSITION num
no setterinherited
BILLBOARDMODE_X num
no setterinherited
BILLBOARDMODE_Y num
no setterinherited
BILLBOARDMODE_Z num
no setterinherited
checkCollisions bool
getter/setter pairinherited
collisionGroup num
getter/setter pairinherited
collisionMask num
getter/setter pairinherited
collisionResponse bool
getter/setter pairinherited
computeBonesUsingShaders bool
getter/setter pairoverride
cullingStrategy num
getter/setter pairinherited
definedFacingForward bool
getter/setter pairinherited
delayLoadingFile String
getter/setter pair
delayLoadState num
getter/setter pair
doNotSerialize bool
getter/setter pairinherited
doNotSyncBoundingInfo bool
getter/setter pairinherited
edgesColor Color4
getter/setter pairinherited
edgesShareWithInstances bool
getter/setter pair
edgesWidth num
getter/setter pairinherited
ellipsoid Vector3
getter/setter pairinherited
ellipsoidOffset Vector3
getter/setter pairinherited
enablePointerMoveEvents bool
getter/setter pairinherited
facetDepthSortFrom Vector3
getter/setter pairinherited
facetNb num
no setterinherited
forward Vector3
no setterinherited
geometry Geometry
no setter
hashCode int
The hash code for this object.
no setterinherited
hasInstances bool
no setteroverride
hasLODLevels bool
no setter
hasThinInstances bool
no setteroverride
hasVertexAlpha bool
getter/setter pairinherited
id String
getter/setter pairinherited
ignoreNonUniformScaling bool
getter/setter pairinherited
infiniteDistance bool
getter/setter pairinherited
instances List<InstancedMesh>
getter/setter pair
isAnInstance bool
no setterinherited
isBlocked bool
no setteroverride
isBlocker bool
getter/setter pairinherited
isFacetDataEnabled bool
no setterinherited
isOccluded bool
getter/setter pairinherited
isOcclusionQueryInProgress bool
getter/setter pairinherited
isPickable bool
getter/setter pairinherited
isUnIndexed bool
getter/setter pair
isVisible bool
getter/setter pairinherited
isWorldMatrixFrozen bool
no setterinherited
layerMask num
getter/setter pairinherited
lightSources List<Light>
no setterinherited
manualUpdateOfWorldMatrixInstancedBuffer bool
getter/setter pair
material Material
getter/setter pairinherited
metadata ↔ dynamic
getter/setter pairinherited
mustDepthSortFacets bool
getter/setter pairinherited
name String
getter/setter pairinherited
nonUniformScaling bool
no setterinherited
normalizeSkinFourWeights ↔ dynamic
getter/setter pair
normalizeSkinWeightsAndExtra ↔ dynamic
getter/setter pair
numBoneInfluencers num
getter/setter pairinherited
occlusionQueryAlgorithmType num
getter/setter pairinherited
occlusionRetryCount num
getter/setter pairinherited
occlusionType num
getter/setter pairinherited
onAfterRenderObservable Observable<Mesh>
no setter
onAfterWorldMatrixUpdateObservable Observable<TransformNode>
getter/setter pairinherited
onBeforeBindObservable Observable<Mesh>
no setter
onBeforeDraw ← void Function()
no getter
onBeforeDrawObservable Observable<Mesh>
no setter
onBeforeRenderObservable Observable<Mesh>
no setter
onCollide ← void Function()
no getterinherited
onCollideObservable Observable<AbstractMesh>
getter/setter pairinherited
onCollisionPositionChange ← void Function()
no getterinherited
onCollisionPositionChangeObservable Observable<Vector3>
getter/setter pairinherited
onDispose ← void Function()
no getterinherited
onDisposeObservable Observable<Node>
getter/setter pairinherited
onLODLevelSelection ↔ void Function(num distance, Mesh mesh, Mesh selectedLevel)
getter/setter pair
onMaterialChangedObservable Observable<AbstractMesh>
getter/setter pairinherited
onReady ↔ void Function(Node node)
getter/setter pairinherited
onRebuildObservable Observable<AbstractMesh>
getter/setter pairinherited
outlineColor Color3
getter/setter pairinherited
outlineWidth num
getter/setter pairinherited
overlayAlpha num
getter/setter pairinherited
overlayColor Color3
getter/setter pairinherited
overrideMaterialSideOrientation num
getter/setter pair
overridenInstanceCount num
no getter
parent Node
getter/setter pairinherited
partitioningBBoxRatio num
getter/setter pairinherited
partitioningSubdivisions num
getter/setter pairinherited
physicsImpostor PhysicsImpostor
getter/setter pairinherited
position Vector3
getter/setter pairinherited
preserveParentRotationForBillboard bool
getter/setter pairinherited
receiveShadows bool
getter/setter pairinherited
reIntegrateRotationIntoRotationQuaternion bool
getter/setter pairinherited
renderingGroupId num
getter/setter pairinherited
renderOutline bool
getter/setter pairinherited
renderOverlay bool
getter/setter pairinherited
reservedDataStore ↔ dynamic
getter/setter pairinherited
no setterinherited
rotation Vector3
getter/setter pairinherited
rotationQuaternion Quaternion
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaling Vector3
getter/setter pairinherited
scalingDeterminant num
getter/setter pairinherited
showBoundingBox bool
getter/setter pairinherited
showSubMeshesBoundingBox bool
getter/setter pairinherited
skeleton Skeleton
getter/setter pairinherited
source Mesh
no setter
state String
getter/setter pairinherited
subMeshes List<SubMesh>
getter/setter pairinherited
surroundingMeshes List<AbstractMesh>
getter/setter pairinherited
thinInstanceCount num
getter/setter pair
thinInstanceEnablePicking bool
getter/setter pair
uniqueId num
getter/setter pairinherited
up Vector3
no setterinherited
useBones bool
no setterinherited
useOctreeForCollisions bool
getter/setter pairinherited
useOctreeForPicking bool
getter/setter pairinherited
useOctreeForRenderingSelection bool
getter/setter pairinherited
useVertexColors bool
getter/setter pairinherited
visibility num
getter/setter pairinherited
worldMatrixFromCache Matrix
no setterinherited
worldMatrixInstancedBuffer Float32List
no setter

Methods

addBehavior(Behavior<Node> behavior) Node
inherited
addChild(AbstractMesh mesh) AbstractMesh
inherited
addInstance(InstancedMesh instance) → void
addLODLevel(num distance, Mesh mesh) Mesh
addRotation(num x, num y, num z) TransformNode
inherited
alignWithNormal(Vector3 normal, [Vector3 upDirection]) AbstractMesh
inherited
applyDisplacementMap(String url, num minHeight, num maxHeight, [void onSuccess(Mesh mesh), Vector2 uvOffset, Vector2 uvScale, bool forceUpdate]) Mesh
applyDisplacementMapFromBuffer(Uint8List buffer, num heightMapWidth, num heightMapHeight, num minHeight, num maxHeight, [Vector2 uvOffset, Vector2 uvScale, bool forceUpdate]) Mesh
applyImpulse(Vector3 force, Vector3 contactPoint) AbstractMesh
inherited
applySkeleton(Skeleton skeleton) Mesh
attachToBone(Bone bone, TransformNode affectedTransformNode) TransformNode
inherited
bakeCurrentTransformIntoVertices([bool bakeIndependenlyOfChildren]) Mesh
bakeTransformIntoVertices(Matrix transform) Mesh
calcMovePOV(num amountRight, num amountUp, num amountForward) Vector3
inherited
calcRotatePOV(num flipBack, num twirlClockwise, num tiltRight) Vector3
inherited
cleanMatrixWeights() → void
clone(String name, Node newParent, [bool doNotCloneChildren]) Mesh
override
computeWorldMatrix([bool force]) Matrix
inherited
convertToFlatShadedMesh() Mesh
convertToUnIndexedMesh() Mesh
createAnimationRange(String name, num from, num to) → void
inherited
createInstance(String name) InstancedMesh
createNormals(bool updatable) AbstractMesh
inherited
deleteAnimationRange(String name, [bool deleteFrames]) → void
inherited
detachFromBone() TransformNode
inherited
disableEdgesRendering() AbstractMesh
inherited
disableFacetData() AbstractMesh
inherited
dispose([bool doNotRecurse, bool disposeMaterialAndTextures]) → void
override
enableEdgesRendering([num epsilon, bool checkVerticesInsteadOfIndices, IEdgesRendererOptions options]) AbstractMesh
inherited
flipFaces([bool flipNormals]) Mesh
forceSharedVertices() → void
freezeNormals() Mesh
freezeWorldMatrix([Matrix newWorldMatrix]) TransformNode
inherited
getAbsolutePivotPoint() Vector3
inherited
getAbsolutePivotPointToRef(Vector3 result) TransformNode
inherited
getAbsolutePosition() Vector3
inherited
getAnimatables() List<IAnimatable>
getAnimationByName(String name) Animation
inherited
getBehaviorByName(String name) Behavior<Node>
inherited
getBoundingInfo() BoundingInfo
inherited
getChildMeshes([bool directDescendantsOnly, bool predicate(Node node)]) List<AbstractMesh>
inherited
getChildren([bool predicate(Node node), bool directDescendantsOnly]) List<Node>
inherited
getChildTransformNodes([bool directDescendantsOnly, bool predicate(Node node)]) List<TransformNode>
inherited
getClassName() String
override
getClosestFacetAtCoordinates(num x, num y, num z, [Vector3 projected, bool checkFace, bool facing]) num
inherited
getClosestFacetAtLocalCoordinates(num x, num y, num z, [Vector3 projected, bool checkFace, bool facing]) num
inherited
getConnectedParticleSystems() List<IParticleSystem>
inherited
getDescendants([bool directDescendantsOnly, bool predicate(Node node)]) List<Node>
inherited
getDirection(Vector3 localAxis) Vector3
inherited
getDirectionToRef(Vector3 localAxis, Vector3 result) TransformNode
inherited
getDistanceToCamera([Camera camera]) num
inherited
getEmittedParticleSystems() List<IParticleSystem>
getEngine() Engine
inherited
getFacetDataParameters() → dynamic
inherited
getFacetLocalNormals() List<Vector3>
inherited
getFacetLocalPartitioning() List<num>
inherited
getFacetLocalPositions() List<Vector3>
inherited
getFacetNormal(num i) Vector3
inherited
getFacetNormalToRef(num i, Vector3 ref) AbstractMesh
inherited
getFacetPosition(num i) Vector3
inherited
getFacetPositionToRef(num i, Vector3 ref) AbstractMesh
inherited
getFacetsAtLocalCoordinates(num x, num y, num z) List<num>
inherited
getHierarchyEmittedParticleSystems() List<IParticleSystem>
getIndices([bool copyWhenShared, bool forceCopy]) Int32List
override
getLOD(Camera camera) AbstractMesh
override
getLODLevelAtDistance(num distance) Mesh
getPhysicsImpostor() PhysicsImpostor
inherited
getPivotMatrix() Matrix
inherited
getPivotPoint() Vector3
inherited
getPivotPointToRef(Vector3 result) TransformNode
inherited
getPoseMatrix() Matrix
inherited
getPositionExpressedInLocalSpace() Vector3
inherited
getPositionInCameraSpace([Camera camera]) Vector3
inherited
getScene() Scene
inherited
getTotalIndices() num
override
getTotalVertices() num
override
getVertexBuffer(String kind) VertexBuffer
getVerticesData(String kind, [bool copyWhenShared, bool forceCopy]) Float32List
override
getVerticesDataKinds() List<String>
getWorldMatrix() Matrix
inherited
increaseVertices(num numberPerEdge) → void
instantiateHierarchy([TransformNode newParent, TransformNodeInstantiateHierarchyOptions options, void onNewNodeCreated(TransformNode source, TransformNode clone)]) TransformNode
inherited
intersectsPoint(Vector3 point) bool
inherited
isCompletelyInFrustum(List<Plane> frustumPlanes) bool
inherited
isDescendantOf(Node ancestor) bool
inherited
isDisposed() bool
inherited
isEnabled([bool checkAncestors]) bool
inherited
isInFrustum(List<Plane> frustumPlanes) bool
override
isReady([bool completeCheck]) bool
override
isSynchronized() bool
inherited
isSynchronizedWithParent() bool
inherited
isVertexBufferUpdatable(String kind) bool
isVerticesDataPresent(String kind) bool
override
locallyTranslate(Vector3 vector3) TransformNode
inherited
lookAt(Vector3 targetPoint, [num yawCor, num pitchCor, num rollCor, Space space]) TransformNode
inherited
makeGeometryUnique() Mesh
markAsDirty(String property) TransformNode
inherited
markVerticesDataAsUpdatable(String kind, [bool updatable]) → void
movePOV(num amountRight, num amountUp, num amountForward) AbstractMesh
inherited
moveWithCollisions(Vector3 displacement) AbstractMesh
inherited
normalizeToUnitCube([bool includeDescendants, bool ignoreRotation, bool predicate(AbstractMesh node)]) AbstractMesh
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optimizeIndices([void successCallback(Mesh mesh)]) Mesh
refreshBoundingInfo([bool applySkeleton]) Mesh
override
registerAfterRender(void func(AbstractMesh mesh)) Mesh
registerAfterWorldMatrixUpdate(void func(TransformNode mesh)) TransformNode
inherited
registerBeforeRender(void func(AbstractMesh mesh)) Mesh
registerInstancedBuffer(String kind, num stride) → void
releaseSubMeshes() AbstractMesh
inherited
removeBehavior(Behavior<Node> behavior) Node
inherited
removeChild(AbstractMesh mesh) AbstractMesh
inherited
removeInstance(InstancedMesh instance) → void
removeLODLevel(Mesh mesh) Mesh
removeVerticesData(String kind) → void
render(SubMesh subMesh, bool enableAlphaMode, [AbstractMesh effectiveMeshReplacement]) Mesh
resetLocalMatrix([bool independentOfChildren]) → void
inherited
rotate(Vector3 axis, num amount, [Space space]) TransformNode
inherited
rotateAround(Vector3 point, Vector3 axis, num amount) TransformNode
inherited
rotatePOV(num flipBack, num twirlClockwise, num tiltRight) AbstractMesh
inherited
serialize([dynamic currentSerializationObject]) → void
override
serializeAnimationRanges() → dynamic
inherited
setAbsolutePosition(Vector3 absolutePosition) TransformNode
inherited
setBoundingInfo(BoundingInfo boundingInfo) AbstractMesh
inherited
setDirection(Vector3 localAxis, [num yawCor, num pitchCor, num rollCor]) TransformNode
inherited
setEnabled(bool value) → void
inherited
setIndices(Int32List indices, num totalVertices, [bool updatable]) AbstractMesh
override
setMaterialByID(String id) Mesh
setNormalsForCPUSkinning() Float32List
setParent(Node node) TransformNode
inherited
setPhysicsLinkWith(Mesh otherMesh, Vector3 pivot1, Vector3 pivot2, [dynamic options]) AbstractMesh
inherited
setPivotMatrix(Matrix matrix, [bool postMultiplyPivotMatrix]) TransformNode
inherited
setPivotPoint(Vector3 point, [Space space]) TransformNode
inherited
setPositionsForCPUSkinning() Float32List
setPositionWithLocalVector(Vector3 vector3) TransformNode
inherited
setPreTransformMatrix(Matrix matrix) TransformNode
inherited
setVerticesBuffer(VertexBuffer buffer) Mesh
setVerticesData(String kind, Float32List data, bool updatable) AbstractMesh
override
subdivide(num count) → void
synchronizeInstances() Mesh
thinInstanceAdd(dynamic matrix, bool refresh) num
thinInstanceAddSelf(bool refresh) num
thinInstanceBufferUpdated(String kind) → void
thinInstanceGetWorldMatrices() List<Matrix>
thinInstancePartialBufferUpdate(String kind, Float32List data, num offset) → void
thinInstanceRefreshBoundingInfo(bool forceRefreshParentInfo) → void
thinInstanceRegisterAttribute(String kind, num stride) → void
thinInstanceSetAttributeAt(String kind, num index, List<num> value, bool refresh) → void
thinInstanceSetBuffer(String kind, Float32List buffer, num stride, bool staticBuffer) → void
thinInstanceSetMatrixAt(num index, Matrix matrix, bool refresh) → void
toLeftHanded() Mesh
toString([bool fullDetails]) String
A string representation of this object.
override
translate(Vector3 axis, num distance, [Space space]) TransformNode
inherited
unfreezeNormals() Mesh
unfreezeWorldMatrix() TransformNode
inherited
unregisterAfterRender(void func(AbstractMesh mesh)) Mesh
unregisterAfterWorldMatrixUpdate(void func(TransformNode mesh)) TransformNode
inherited
unregisterBeforeRender(void func(AbstractMesh mesh)) Mesh
updateCache([bool force]) → void
inherited
updateFacetData() AbstractMesh
inherited
updateIndices(Int32List indices, [num offset, bool gpuMemoryOnly]) AbstractMesh
override
updateMeshPositions(void positionFunction(Float32List data), [bool computeNormals]) Mesh
updatePoseMatrix(Matrix matrix) TransformNode
inherited
updateVerticesData(String kind, Float32List data, [bool updateExtends, bool makeItUnique]) AbstractMesh
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

BACKSIDE num
no setter
BOTTOM num
no setter
CAP_ALL num
no setter
CAP_END num
no setter
CAP_START num
no setter
CENTER num
no setter
DEFAULTSIDE num
no setter
DOUBLESIDE num
no setter
FLIP_N_ROTATE_ROW num
no setter
FLIP_N_ROTATE_TILE num
no setter
FLIP_ROW num
no setter
FLIP_TILE num
no setter
FRONTSIDE num
no setter
LEFT num
no setter
NO_CAP num
no setter
NO_FLIP num
no setter
no setter
ROTATE_ROW num
no setter
ROTATE_TILE num
no setter
TOP num
no setter

Static Methods

CreateBox(String name, num size, [Scene scene, bool updatable, num sideOrientation]) Mesh
CreateCapsule(String name, ICreateCapsuleOptions options, Scene scene) Mesh
CreateCylinder(String name, num height, num diameterTop, num diameterBottom, num tessellation, dynamic subdivisions, [Scene scene, dynamic updatable, num sideOrientation]) Mesh
CreateDashedLines(String name, List<Vector3> points, num dashSize, num gapSize, num dashNb, [Scene scene, bool updatable, LinesMesh instance]) LinesMesh
CreateDecal(String name, AbstractMesh sourceMesh, Vector3 position, Vector3 normal, Vector3 size, num angle) Mesh
CreateDisc(String name, num radius, num tessellation, [Scene scene, bool updatable, num sideOrientation]) Mesh
CreateGround(String name, num width, num height, num subdivisions, [Scene scene, bool updatable]) Mesh
CreateGroundFromHeightMap(String name, String url, num width, num height, num subdivisions, num minHeight, num maxHeight, Scene scene, [bool updatable, void onReady(GroundMesh mesh), num alphaFilter]) GroundMesh
CreateHemisphere(String name, num segments, num diameter, [Scene scene]) Mesh
CreateIcoSphere(String name, MeshCreateIcoSphereOptions options, Scene scene) Mesh
CreateLathe(String name, List<Vector3> shape, num radius, num tessellation, Scene scene, [bool updatable, num sideOrientation]) Mesh
CreateLines(String name, List<Vector3> points, [Scene scene, bool updatable, LinesMesh instance]) LinesMesh
CreatePlane(String name, num size, Scene scene, [bool updatable, num sideOrientation]) Mesh
CreatePolygon(String name, List<Vector3> shape, Scene scene, [List<Vector3> holes, bool updatable, num sideOrientation, dynamic earcutInjection]) Mesh
CreatePolyhedron(String name, MeshCreatePolyhedronOptions options, Scene scene) Mesh
CreateRibbon(String name, List<Vector3> pathArray, bool closeArray, bool closePath, num offset, [Scene scene, bool updatable, num sideOrientation, Mesh instance]) Mesh
CreateSphere(String name, num segments, num diameter, [Scene scene, bool updatable, num sideOrientation]) Mesh
CreateTiledGround(String name, num xmin, num zmin, num xmax, num zmax, MeshCreateTiledGroundSubdivisions subdivisions, MeshCreateTiledGroundPrecision precision, Scene scene, [bool updatable]) Mesh
CreateTorus(String name, num diameter, num thickness, num tessellation, [Scene scene, bool updatable, num sideOrientation]) Mesh
CreateTorusKnot(String name, num radius, num tube, num radialSegments, num tubularSegments, num p, num q, [Scene scene, bool updatable, num sideOrientation]) Mesh
CreateTube(String name, List<Vector3> path, num radius, num tessellation, num radiusFunction(num i, num distance), num cap, Scene scene, [bool updatable, num sideOrientation, Mesh instance]) Mesh
ExtrudePolygon(String name, List<Vector3> shape, num depth, Scene scene, [List<Vector3> holes, bool updatable, num sideOrientation, dynamic earcutInjection]) Mesh
ExtrudeShape(String name, List<Vector3> shape, List<Vector3> path, num scale, num rotation, num cap, [Scene scene, bool updatable, num sideOrientation, Mesh instance]) Mesh
ExtrudeShapeCustom(String name, List<Vector3> shape, List<Vector3> path, Function scaleFunction, Function rotationFunction, bool ribbonCloseArray, bool ribbonClosePath, num cap, Scene scene, [bool updatable, num sideOrientation, Mesh instance]) Mesh
MergeMeshes(List<Mesh> meshes, [bool disposeSource, bool allow32BitsIndices, Mesh meshSubclass, bool subdivideWithSubMeshes, bool multiMultiMaterials]) Mesh
Parse(dynamic parsedTransformNode, Scene scene, String rootUrl) Mesh
override