70 const double &
x2b,
const double &
x3b,
const double &
rad)
138 "derzeit nur zu Achsen orthogonale Zylinder erlaubt... isPointInObject3D funzt sonst ned");
202 this->
mRad = std::fabs(radius);
248 "derzeit nur zu Achsen orthogonale Zylinder erlaubt... isPointInObject3D funzt sonst ned");
266 "derzeit nur zu Achsen orthogonale Zylinder erlaubt... isPointInObject3D funzt sonst ned");
288 ss <<
"GbCylinder3D[";
290 ss <<
", r=" << this->
mRad;
296 const double &
x2b,
const double &
x3b)
308 const double &
x2b,
const double &
x3b)
327 const double &
x1b,
const double &
x2b,
const double &
x3b)
411 double xa,
ya,
za,
xb,
yb,
zb,
xm,
ym,
zStart,
zEnd, t1, t2;
414 xa =
point1.getX2Coordinate();
425 xa =
point1.getX1Coordinate();
436 xa =
point1.getX1Coordinate();
475 double x =
xa * (0.5 - 0.5 * t1) +
xb * (0.5 + 0.5 * t1);
476 double y =
ya * (0.5 - 0.5 * t1) +
yb * (0.5 + 0.5 * t1);
477 double z =
za * (0.5 - 0.5 * t1) +
zb * (0.5 + 0.5 * t1);
491 double x =
xa * (0.5 - 0.5 * t2) +
xb * (0.5 + 0.5 * t2);
492 double y =
ya * (0.5 - 0.5 * t2) +
yb * (0.5 + 0.5 * t2);
493 double z =
za * (0.5 - 0.5 * t2) +
zb * (0.5 + 0.5 * t2);
522 x1a =
point1.getX1Coordinate();
543 x1a =
point1.getX2Coordinate();
564 x1a =
point1.getX3Coordinate();
734 double x1a,
x2a,
x3a,
x1b,
x2b,
x3b,
x1c,
x2c,
x3c,
x1d,
x2d,
x3d;
848 float x1a,
x2a,
x3a,
x1b,
x2b,
x3b,
x1c,
x2c,
x3c,
x1d,
x2d,
x3d;
993 float x1a,
x2a,
x3a,
x1b,
x2b,
x3b,
x1c,
x2c,
x3c,
x1d,
x2d,
x3d;
1118 if (!line || this->
mLine != line)
1157 const double &
rx1,
const double &
rx2,
const double &
rx3)
1166 double d = ub_math::inf;
1182 d = -1.0 * (x1 -
px1) /
rx1;
1214 d = -1 * (x2 -
px2) /
rx2;
1247 d = -1.0 * (x3 -
px3) /
rx3;
1286 double nLength = nx1 * nx1 + nx2 * nx2 + nx3 * nx3;
1338 }
else if ((
t +
s) > 0) {
double getX3Maximum() override
static const int X1PARALLEL
bool isNotParallelToAxis()
bool isParallelToX3Axis()
double getX1Centroid() override
static const int X3PARALLEL
bool isParallelToX2Axis()
double getX2Minimum() override
double getX1Maximum() override
double getX2Centroid() override
static const int X2PARALLEL
static const int NOTPARALLELTOAXIS
double getX3Minimum() override
bool isParallelToX1Axis()
double getX2Maximum() override
double getX3Centroid() override
double getX1Minimum() override
This Class provides basic 3D line objects.
double getX3Centroid() override
double getX1Maximum() override
double getX3Maximum() override
double getX2Maximum() override
double getX1Minimum() override
double getX3Minimum() override
GbLine3D * clone() override
double getX1Centroid() override
double getX2Minimum() override
double getX2Centroid() override
This Class provides basic 3D point objects.
double getX3Coordinate() const
void setCoordinates(const double &x1, const double &x2, const double &x3)
double getX1Coordinate() const
double getX2Coordinate() const
This Class provides basic 3D triangle objects.
void setName(std::string name)
virtual void removeObserver(UbObserver *observer)
virtual void addObserver(UbObserver *observer)
virtual void notifyObserversObjectChanged()
std::shared_ptr< T > SPtr
double getDistance(const GbPoint3D &point)
void setPoint2(const double &x1, const double &x2, const double &x3)
void addSurfaceTriangleSetSegments(std::vector< UbTupleFloat3 > &nodes, std::vector< UbTupleInt3 > &triangles, int segmentsRound, int segmentsHeight)
bool isCellInsideGbObject3D(const double &x1a, const double &x2a, const double &x3a, const double &x1b, const double &x2b, const double &x3b) override
void objectChanged(UbObservable *changedObject) override
void addSurfaceTriangleSet(std::vector< UbTupleFloat3 > &nodes, std::vector< UbTupleInt3 > &triangles) override
void setPoints(GbPoint3D *point1, GbPoint3D *point2)
void objectWillBeDeleted(UbObservable *objectForDeletion) override
std::vector< GbTriangle3D * > getSurfaceTriangleSet() override
std::string toString() override
bool isCellInsideOrCuttingGbObject3D(const double &x1a, const double &x2a, const double &x3a, const double &x1b, const double &x2b, const double &x3b) override
void setRadius(const double &radius)
bool isCellCuttingGbObject3D(const double &x1a, const double &x2a, const double &x3a, const double &x1b, const double &x2b, const double &x3b) override
GbLine3D * createClippedLine3D(GbPoint3D &point1, GbPoint3D &point2) override
bool isPointInGbObject3D(const double &x1p, const double &x2p, const double &x3p) override
void setPoint1(const double &x1, const double &x2, const double &x3)
std::string toString() override
double getIntersectionRaytraceFactor(const double &x1, const double &x2, const double &x3, const double &rx1, const double &rx2, const double &rx3) override
void scale(const double &sx1, const double &sx2, const double &sx3) override
void setLine(GbLine3D *line)
void scale(const double &sx1, const double &sx2, const double &sx3) override
UbTuple< T1 > makeUbTuple(T1 const &a1)
bool greaterEqual(const T1 &value, const T2 &reference)
const T & min(const T &a1, const T &a2)
bool lessEqual(const T1 &value, const T2 &reference)
bool equal(const T1 &value, const T2 &reference)
bool positive(const T &value)
bool negative(const T &value)
bool greater(const T1 &value, const T2 &reference)
bool inClosedInterval(const T1 &value, const T2 &threshold1, const T3 &threshold2)
bool zero(const T &value)
bool less(const T1 &value, const T2 &reference)