BoxMeshStamp.h
1 
2 #pragma once
3 #include "Vector.h"
4 #include "StampMesh.h"
5 
6 namespace VoxelFarm
7 {
8  // Mesh stamping for box scope
9  class CBoxMesh : public IMeshStampSource
10  {
11  public:
12  float coords[8][3];
13  CBoxMesh(float coords[8][3]);
14 
15  // IMeshStampSource implementation
16  virtual int getSolidCount();
17  virtual MaterialId getSolidMaterial(int solid);
18  virtual int getFaceCount(int solid);
19  virtual void getFace(int solid, int index, Algebra::Vector& v0, Algebra::Vector& v1, Algebra::Vector& v2);
20  };
21 }
virtual int getSolidCount()
Returns the number of solids.
Contains all classes and functions for the VoxelFarm engine.
A 3D Vector.
Definition: Vector.h:34
It allows to access to the faces and materials of a list of solids.
Definition: StampMesh.h:31
virtual MaterialId getSolidMaterial(int solid)
Returns the material of a solid.
virtual int getFaceCount(int solid)
Returns the number of faces in a solid.
virtual void getFace(int solid, int index, Algebra::Vector &v0, Algebra::Vector &v1, Algebra::Vector &v2)
Get the vertices of a face of a solid.