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.

InlineMeshShape InlineMeshShape InlineMeshShape InlineGeometryShape InlineGeometryShape InlineMeshShape->InlineGeometryShape InlineShapeBase InlineShapeBase InlineGeometryShape->InlineShapeBase InlineEntityBase InlineEntityBase InlineShapeBase->InlineEntityBase InlineShape InlineShape InlineShapeBase->InlineShape InlineEntity InlineEntity InlineEntityBase->InlineEntity

/*
** 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 )

Methods in detail

InlineMeshShape ( in InlineMeshShape other )

copy constructor


InlineMeshShape ( in String name, in PolygonMesh mesh )

default constructor, taking a name and a PolygonMesh


InlineMeshShape ()

default constructor


InlineMeshShape InlineMeshShape.clone? ()

clone method


Ref<PolygonMesh> InlineMeshShape.getMesh? ()

returns the PolygonMesh used by this shape


InlineMeshShape.setMesh! ( in PolygonMesh mesh )

sets the PolygonMesh used by this shape