InlineMeshShape.kl¶
Types¶
InlineMeshShape (object)¶
バージョン 1.12.0 で追加.
The InlineMeshShape inherits from the InlineGeometryShape object. It provides a shape type for PolygonMesh objects. The InlineMeshShape keeps a reference to the mesh, so if the mesh changes (being deformed etc) the shape will updates its buffers automatically.
/*
** Example: InlineMeshShape
*/
require InlineDrawing;
operator entry() {
// create a mesh
PolygonMesh mesh = PolygonMesh();
mesh.addCuboid(Xfo(), 5, 5, 5, true, true);
// create a shape
InlineShape shape = InlineMeshShape('cube', mesh);
}
/*
** Output:
*/
Methods¶
InlineMeshShape ( in InlineMeshShape other ) | |
InlineMeshShape ( in String name, in PolygonMesh mesh ) | |
InlineMeshShape () | |
InlineMeshShape | clone ? () |
Ref<PolygonMesh> | getMesh ? () |
setMesh ! ( in PolygonMesh mesh ) |