3DCoat
3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
|
HexagonalGrid2D intended to create square hexagonal grid patch (regular with some irregularity on the edge, when |z| == 1) that covers range x:[-1..1], y=0, z:[-1..1] Use this chass for preview of different distortions over the plane, it has very fast normals calculation routine. More...
#include <ModelPreview.h>
Public Member Functions | |
HexagonalGrid2D () | |
6*positions_count More... | |
void | Init (int Size) |
Call Init to setup grid size along the X-axis. More... | |
void | CalcNormals () |
Very fast normals calculation routine. More... | |
Vector3D & | pos (int idx) |
returns position for the deformation More... | |
int | numpos () |
returns amount of positions More... | |
comms::cMeshContainer * | mesh () |
returns mesh for the preview purposes More... | |
HexagonalGrid2D intended to create square hexagonal grid patch (regular with some irregularity on the edge, when |z| == 1) that covers range x:[-1..1], y=0, z:[-1..1] Use this chass for preview of different distortions over the plane, it has very fast normals calculation routine.
HexagonalGrid2D::HexagonalGrid2D | ( | ) |
6*positions_count
void HexagonalGrid2D::CalcNormals | ( | ) |
Very fast normals calculation routine.
References comms::cMeshContainer::GetNormals(), and pos().
void HexagonalGrid2D::Init | ( | int | Size | ) |
Call Init to setup grid size along the X-axis.
comms::cMeshContainer * HexagonalGrid2D::mesh | ( | ) |
returns mesh for the preview purposes
int HexagonalGrid2D::numpos | ( | ) |
returns amount of positions
Vector3D & HexagonalGrid2D::pos | ( | int | idx | ) |
returns position for the deformation
Referenced by CalcNormals().