InlineDebugShape.kl

Types

InlineDebugShape (object)

The InlineDebugShape inherits from the InlineShape for debug drawing purposes.

/*
** Example: InlineDebugShape
*/

require InlineDrawing;
  
operator entry() {

      InlineDebugShape shape('debug');
      
      // draw a couple of points
      shape.drawPoint(Vec3(5, 0, 0));
      shape.drawPoint(Vec3(0, 5, 0));
      shape.drawPoint(Vec3(0, 0, 5));
      
      // draw a couple of lines
      shape.drawLine(Vec3(0, 0, 0), Vec3(5, 0, 0));
      shape.drawLine(Vec3(0, 0, 0), Vec3(0, 5, 0));
      shape.drawLine(Vec3(0, 0, 0), Vec3(0, 0, 5));
      
      // for more methods check the method description below.
  
}

/*
** Output:


*/

Methods

  InlineDebugShape ( in InlineDebugShape other )
  InlineDebugShape ( in String name )
  InlineDebugShape ()
Index allocateLines ! ( in Size nbPoints, in Size nbLines )
Index allocatePoints ! ( in Size nbPoints )
Index allocateTriangles ! ( in Size nbPoints, in Size nbTriangles )
Index allocateVertices ! ( in Size nbVertices )
  clear ! ()
InlineDebugShape clone ? ()
  disablePen ! ()
InlineDebugShape drawArc ! ( in Xfo xfo, in Scalar radius, in Vec2 angleMinMax, in Integer detail )
InlineDebugShape drawAxes ! ( in Xfo xfo, in Boolean bothSides )
InlineDebugShape drawBBox ! ( in Xfo xfo, in Vec3 bboxmin, in Vec3 bboxmax )
InlineDebugShape drawCapsuleLines ! ( in Xfo xfo, in Scalar radius, in Scalar height, in Integer detail )
InlineDebugShape drawCircle ! ( in Xfo xfo, in Scalar radius, in Integer detail )
InlineDebugShape drawLine ! ( in Vec3 from, in Vec3 to )
InlineDebugShape drawLineSegments ! ( in Vec3 starts[], in Vec3 ends[] )
InlineDebugShape drawLineStrip ! ( in Vec3 points[] )
InlineDebugShape drawPoint ! ( in Vec3 pos )
InlineDebugShape drawPoints ! ( in Vec3 pos[] )
InlineDebugShape drawSegmentedLine ! ( in Vec3 from, in Vec3 to, in Size numSegments )
InlineDebugShape drawSegmentedLine ! ( in Vec3 from, in Vec3 to, in Size numSegments, in Scalar ratio )
InlineDebugShape drawSphereLines ! ( in Xfo xfo, in Scalar radius, in Integer detail )
InlineDebugShape drawSquare ! ( in Xfo xfo, in Scalar length, in Scalar width )
InlineDebugShape drawTriangle ! ( in Vec3 p0, in Vec3 p1, in Vec3 p2 )
InlineDebugShape drawTriangle ! ( in Vec3 p0, in Vec3 p1, in Vec3 p2, in Vec3 n )
InlineDebugShape drawTriangle ! ( in Vec3 p0, in Vec3 p1, in Vec3 p2, in Vec3 n0, in Vec3 n1, in Vec3 n2 )
InlineDebugShape drawTrianglesCone ! ( in Xfo xfo, in Scalar radius, in Scalar height, in Integer detail )
InlineDebugShape drawTrianglesCube ! ( in Xfo xfo, in Scalar width, in Scalar height, in Scalar length )
InlineDebugShape drawTrianglesPlane ! ( in Xfo xfo, in Scalar width, in Scalar height )
InlineDebugShape drawTrianglesSphere ! ( in Xfo xfo, in Scalar radius, in Integer detail )
GeometryAttributes getAttributes ? ()
Scalar getLineWidth ? ()
Scalar getPointSize ? ()
Xfo getXfo ? ()
  init ! ( in String name )
  reset ! ()
  setLineWidth ! ( in Scalar value )
  setPen ! ( in Color color, in Float32 radius )
  setPointSize ! ( in Scalar value )
  setXfo ! ( in Xfo xfo )