InlineLinesShape.kl

Types

InlineLinesShape (object)

バージョン 1.12.0 で追加.

The InlineLinesShape inherits from the InlineGeometryShape object. It provides a shape type for Lines objects. The InlineLinesShape keeps a reference to the lines, so if the lines change (being deformed etc) the shape will updates its buffers automatically.

/*
** Example: InlineLinesShape
*/

require InlineDrawing;
  
operator entry() {

      //Create a XYZ cross
      Lines lines = Lines();
      lines.addPoints( 6 );
      
      lines.setPosition( 0, Vec3(1,0,0) );
      lines.setPosition( 1, Vec3(-1,0,0) );
      lines.addSegment( 0, 1 );
      
      lines.setPosition( 2, Vec3(0,1,0) );
      lines.setPosition( 3, Vec3(0,-1,0) );
      lines.addSegment( 2, 3 );
      
      lines.setPosition( 4, Vec3(0,0,1) );
      lines.setPosition( 5, Vec3(0,0,-1) );
      lines.addSegment( 4, 5 );
      
      // create a shape
      InlineShape shape = InlineLinesShape('lines', lines);
  
}

/*
** Output:


*/

Methods

  InlineLinesShape ( in InlineLinesShape other )
  InlineLinesShape ( in String name, in Lines lines )
  InlineLinesShape ()
InlineLinesShape clone ? ()
Scalar getLineWidth ? ()
Ref<Lines> getLines ? ()
  setLineWidth ! ( in Scalar lineWidth )
  setLines ! ( in Lines lines )