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.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
HexagonalGrid2D Class Reference

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...
 
Vector3Dpos (int idx)
 returns position for the deformation More...
 
int numpos ()
 returns amount of positions More...
 
comms::cMeshContainermesh ()
 returns mesh for the preview purposes More...
 

Detailed Description

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.

Constructor & Destructor Documentation

HexagonalGrid2D::HexagonalGrid2D ( )

6*positions_count

Member Function Documentation

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().


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