30CShearedVoxelMesh::CShearedVoxelMesh(
string Type)
44 double Angle1, Angle2;
68 vector<XYZ> CentrePoints;
69 vector<POINT_INFO> RowInfo;
86 Point.
z = StartPoint.
z;
90 Output << iNodeIndex <<
", ";
91 Output << Point <<
"\n";
103 CentrePoints.push_back(Point);
112 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.
virtual ~CShearedVoxelMesh(void)
bool CalculateVoxelSizes(CTextile &Textile)
Calculate voxel size based on number of voxels on each axis and domain size.
void OutputNodes(ostream &Output, CTextile &Textile, int Filetype=INP_EXPORT)
Outputs nodes to .inp file and gets element information.
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.