23 #include "mbsim/contours/plane.h"
24 #include "fmatvec/fmatvec.h"
25 #include "fmatvec/linear_algebra_double.h"
26 #include "fmatvec/linear_algebra.h"
28 #include <mbsim/utils/openmbv_utils.h>
47 Plate(
const std::string &name,
double yL,
double zL,
double t,
Frame *
R=0);
57 void setYLength(
double l) {
60 void setZLength(
double l) {
64 double getYLength()
const {
67 double getZLength()
const {
71 const fmatvec::Vec3 & getA()
const {
74 const fmatvec::Vec3 & getB()
const {
77 const fmatvec::Vec3 & getC()
const {
80 const fmatvec::Vec3 & getD()
const {
100 bool PointInCircle(
const fmatvec::Vec3& Point,
const fmatvec::Vec3& CenCir,
const double & radius);
119 BOOST_PARAMETER_MEMBER_FUNCTION( (
void), enableOpenMBV, tag, (optional (diffuseColor,(
const fmatvec::Vec3&),
"[-1;1;1]")(transparency,(
double),0))) {
120 OpenMBVCuboid ombv(fmatvec::Vec3(),diffuseColor,transparency);
121 openMBVRigidBody=ombv.createOpenMBV();
125 double yLength, zLength;
Plate(const std::string &name="", Frame *R=0)
constructor
bool PointInCircle(const fmatvec::Vec3 &Point, const fmatvec::Vec3 &CenCir, const double &radius)
check if a point lies in the circle (point and circle are on the same plane)
Definition: plate.cc:93
fmatvec::Vec3 RrD
vertex for y = limy/2, z = -limz/2
Definition: plate.h:145
bool Intersect_Circle(const double &radius, const fmatvec::Vec3 &CenCir)
check if this plate intersect with a circle,
Definition: plate.cc:120
bool PointInPlate(const fmatvec::Vec3 &Point)
if the point and plate are on the same plane by default, this function checks if a point lies in the ...
Definition: plate.cc:82
virtual void init(InitStage stage)
plots time series header
Definition: plate.cc:41
std::string getType() const
Definition: plate.h:50
fmatvec::Vec3 Point_closest_toCircle_onLineseg(const fmatvec::Vec3 &EndP1, const fmatvec::Vec3 &EndP2, const fmatvec::Vec3 &CenCir)
search the closest point on the line segment to a circle
Definition: plate.cc:102
plane without borders
Definition: plane.h:38
RigidContour Plate.
Definition: plate.h:37
InitStage
The stages of the initialization.
Definition: element.h:97
fmatvec::Vec3 RrC
vertex for y = -limy/2, z = -limz/2
Definition: plate.h:140
fmatvec::Vec3 RrB
vertex for y = -limy/2, z = limz/2
Definition: plate.h:135
std::string name
name of element
Definition: element.h:298
fmatvec::Vec3 RrA
vertex for y = limy/2, z = limz/2
Definition: plate.h:130
cartesian frame on bodies used for application of e.g. links and loads
Definition: frame.h:37
void setVertices()
set the verticies positions
Definition: plate.cc:60
Frame * R
coordinate system of contour
Definition: rigid_contour.h:88