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

Public Member Functions

 GridShape (Vector3 position, DrawMode drawMode, Vector2Int resolution, Vector2 spacing)
 
GridShape InterpolatedGrid (GridShape target, float alpha)
 
override float [] Bbox ()
 calculate the bounding box of this shape More...
 
Vector3 [] BboxV (float zpos)
 
- 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 [] ScaledUnitGrid (int xres, int yres, Vector3 pos, 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

Vector2Int resolution
 
Vector2 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

◆ GridShape()

GridShape.GridShape ( Vector3  position,
DrawMode  drawMode,
Vector2Int  resolution,
Vector2  spacing 
)

Member Function Documentation

◆ Bbox()

override float [] GridShape.Bbox ( )
virtual

calculate the bounding box of this shape

Returns

Implements Shape.

◆ BboxV()

Vector3 [] GridShape.BboxV ( float  zpos)

◆ calcVertices()

override void GridShape.calcVertices ( )
protectedvirtual

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

Implements Shape.

◆ InterpolatedGrid()

GridShape GridShape.InterpolatedGrid ( GridShape  target,
float  alpha 
)

◆ ScaledUnitGrid()

static Vector3 [] GridShape.ScaledUnitGrid ( int  xres,
int  yres,
Vector3  pos,
float  scale 
)
static

Member Data Documentation

◆ resolution

Vector2Int GridShape.resolution

◆ spacing

Vector2 GridShape.spacing

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