30CRotatedVoxelMesh::CRotatedVoxelMesh(
string Type)
68 vector<XYZ> CentrePoints;
69 vector<POINT_INFO> RowInfo;
88 Output << iNodeIndex <<
", ";
89 Output << Point <<
"\n";
105 CentrePoints.push_back(Point);
114 CentrePoints.clear();
const CMesh & GetMesh() const
Get the mesh representing the domain as a surface mesh.
Defines the nodes and elements of a surface or volume mesh.
const int AddNode(XYZ Node)
Append a node to the list of nodes, the integer returns the index of the node
const XYZ & GetNode(int iIndex) const
Get the node with given ID.
void OutputNodes(ostream &Output, CTextile &Textile, int Filetype=INP_EXPORT)
Outputs nodes to .inp file and gets element information.
virtual ~CRotatedVoxelMesh(void)
XYZ m_RotatedVoxSize[3]
x, y, z lengths of rotated voxels
XYZ m_StartPoint
Reference point for generating voxel grid (Point 0 of domain mesh)
bool CalculateVoxelSizes(CTextile &Textile)
Calculate voxel size based on number of voxels on each axis and domain size.
Represents a textile cell containing yarns.
const CDomain * GetDomain() const
void GetPointInformation(const vector< XYZ > &Points, vector< POINT_INFO > &PointsInfo, double dTolerance=1e-9)
Get useful information of a list of points.
Class used to generate voxel mesh for output to ABAQUS.
int m_XVoxels
Number of voxels along x,y and z axes.
vector< POINT_INFO > m_ElementsInfo
Element information as calculated by GetPointInformation.
CMesh m_Mesh
Find intersections of yarn surfaces with grid of lines from node points in each axis.
Namespace containing a series of customised math operations not found in the standard c++ library.
double GetLength(const XYZ &Point1, const XYZ &Point2)
Get the length between two points.
Struct for representing points in 3D space.