Visualisierung 2 CNN
LineShape Class Reference
Inheritance diagram for LineShape:
Shape

Public Member Functions

 LineShape (Vector3 position, DrawMode drawMode, int resolution, float spacing)
 
override float [] Bbox ()
 calculate the bounding box of this shape More...
 
- Public Member Functions inherited from Shape
 Shape (Vector3 position, DrawMode drawMode)
 
Vector3 [] GetVertices (bool update)
 Return vertices of this shape. If update parameter is false, stored vertices are returned, else they are recalculated. More...
 

Static Public Member Functions

static Vector3 [] ScaledUnitLine (int res, Vector3 pos, Vector3 dir, float scale)
 
- Static Public Member Functions inherited from Shape
static Vector3 [] InterpolateShapes (Vector3[] s1, Vector3[] s2, float alpha)
 Interpolate 2 Shapes with different parameters and return their vertices. More...
 

Public Attributes

int resolution
 
float spacing
 

Protected Member Functions

override void calcVertices ()
 returns 3d Vectors that can be added to the mesh. More...
 

Additional Inherited Members

- Protected Attributes inherited from Shape
DrawMode drawMode
 
Vector3 [] _verts
 
- Properties inherited from Shape
Vector3 position [get, set]
 

Constructor & Destructor Documentation

◆ LineShape()

LineShape.LineShape ( Vector3  position,
DrawMode  drawMode,
int  resolution,
float  spacing 
)

Member Function Documentation

◆ Bbox()

override float [] LineShape.Bbox ( )
virtual

calculate the bounding box of this shape

Returns

Implements Shape.

◆ calcVertices()

override void LineShape.calcVertices ( )
protectedvirtual

returns 3d Vectors that can be added to the mesh.

Implements Shape.

◆ ScaledUnitLine()

static Vector3 [] LineShape.ScaledUnitLine ( int  res,
Vector3  pos,
Vector3  dir,
float  scale 
)
static

Member Data Documentation

◆ resolution

int LineShape.resolution

◆ spacing

float LineShape.spacing

The documentation for this class was generated from the following file: