Is a type of Body created by the extrusion of a 2D polygon.
Definition BodyPolygon.h:59
BodyPolygon()
Default constructor.
double distretizationLength
length of the local mesh used to create the body
Definition BodyPolygon.h:110
virtual void setMaterialId(int material_id)
Configure the material id.
Definition BodyPolygon.h:77
virtual int getMaterialId() const
Return the material identification.
Definition BodyPolygon.h:81
double extrudeDisplacement
extrude displacement
Definition BodyPolygon.h:108
void setExtrudeDirection(string extrude_direction)
Configures the extrude direction.
Definition BodyPolygon.h:90
void setExtrudeDisplacement(double extrude_displacement)
Configures the extrude displacement.
Definition BodyPolygon.h:94
virtual ~BodyPolygon()
Default destruction.
string extrudeDirection
extrude direction
Definition BodyPolygon.h:106
void setDiscretizationLength(double distretization_length)
Configures the discretization parameter.
Definition BodyPolygon.h:98
int materialId
material identification
Definition BodyPolygon.h:102
void setPoints(vector< Vector3d > polygon_points)
Configure the geometrical points of the polygon.
Definition BodyPolygon.h:73
vector< Vector3d > polygonPoints
geometrical definition of the polygon
Definition BodyPolygon.h:104
virtual void create(Mesh &mesh, Material *material)
Create a body in space using a polygon in 2D.
Represents a body in the space forming by a group of materials points and identified by a number.
Definition Body.h:19
Represents a material.
Definition Material.h:18
Class representing a rectangular grid mesh.
Definition Mesh.h:29