xc
Public Member Functions | List of all members
HalfSpace3d Class Reference

The points of the half space are those that line at the back of the plane, this being understood as those that return a zero or negative value when evaluating on them the general equation of the plane, i. More...

#include <HalfSpace3d.h>

Inheritance diagram for HalfSpace3d:
Inheritance graph
[legend]
Collaboration diagram for HalfSpace3d:
Collaboration graph
[legend]

Public Member Functions

 HalfSpace3d (const Plane &p=Plane())
 Default constructor.
 
 HalfSpace3d (const Plane &, const Pos3d &)
 Constructor. More...
 
virtual bool operator== (const HalfSpace3d &) const
 Comparison operator.
 
const PlanegetBoundaryPlane (void) const
 Return the plane that defined de half space boundary.
 
void setBoundaryPlane (const Plane &)
 
virtual GeomObjgetCopy (void) const
 
void swap (void)
 
HalfSpace3d getSwap (void) const
 Returns the complementary half space.
 
virtual GEOM_FT GetMax (unsigned short int) const
 Return the maximum value of the i-th coordinate.
 
virtual GEOM_FT GetMin (unsigned short int) const
 Return the minimum value of the i-th coordinate.
 
Vector3d NormalExterior (void) const
 Return a vector normal to the boundary plane oriented inside-out. More...
 
Vector3d NormalInterior (void) const
 Return a vector normal to the boundary plane oriented outside-in. More...
 
const PlanegetPlane (void) const
 
virtual bool In (const Pos3d &, const double &tol=0.0) const
 Return true if the point is inside the half-space. More...
 
virtual bool In (const Line3d &, const double &tol=0.0) const
 Return true if the line is inside the half-space.
 
virtual bool In (const Ray3d &, const double &tol=0.0) const
 Return true if the ray is inside the half-space.
 
virtual bool In (const Segment3d &, const double &tol=0.0) const
 Return true if the segment is inside the half-space.
 
virtual bool In (const Polyline3d &, const double &tol=0.0) const
 Return true if the polyline is inside the half-space.
 
bool intersects (const HalfSpace3d &hs) const
 
bool intersects (const Line3d &) const
 Return true if part of the line is inside the half-space. More...
 
bool intersects (const Ray3d &) const
 Return true if part of the ray is inside the half-space. More...
 
bool intersects (const Segment3d &) const
 Return true if part of the segment is inside the half-space. More...
 
bool intersects (const Polyline3d &) const
 Return true if part of the polyline is inside the half-space. More...
 
GEOM_FT distSigno (const Pos3d &) const
 Return the signed distance from the point to the half plane.
 
GEOM_FT distSigno2 (const Pos3d &p) const
 Return the signed squared distance from the point to the half plane.
 
virtual GEOM_FT dist (const Pos3d &p) const
 Return the distance from the point to the half plane.
 
virtual GEOM_FT dist2 (const Pos3d &p) const
 Return the squared distance from the point to the half plane.
 
GEOM_FT getAngle (const HalfSpace3d &) const
 Return el the angle with the half space argument.
 
GEOM_FT getAngle (const Plane &) const
 Return the angle with respect to the plane argument.
 
GEOM_FT getAngle (const Vector3d &) const
 Return the angle with the vector argument.
 
Line3d getLima (const HalfSpace3d &) const
 Return la arista de the intersection entre half spaces.
 
virtual unsigned short int Dimension (void) const
 brief Return the dimension of the object 0, 1, 2 or 3.
 
virtual GEOM_FT getLength (void) const
 Return the length of the object.
 
virtual GEOM_FT getArea (void) const
 Return the object area.
 
virtual GEOM_FT getVolume (void) const
 Return the object volume.
 
virtual Pos3d getCenterOfMass (void) const
 
virtual GEOM_FT Ix (void) const
 Return el moment of inertia with respect to the center of mass in local coordinates.
 
virtual GEOM_FT Iy (void) const
 Return el moment of inertia with respect to the center of mass in local coordinates.
 
virtual GEOM_FT Pxy (void) const
 Return el product of inertia.
 
virtual GEOM_FT Iz (void) const
 Return el moment of inertia with respect to the center of mass in local coordinates.
 
Ray3d clip (const Line3d &) const
 Returns the part of the line that is inside the half-space.
 
Ray3d clip (const Ray3d &) const
 Returns the part of the ray that is inside the half-space.
 
Segment3d clip (const Segment3d &) const
 Returns the part of the segment that is inside the half-space.
 
std::deque< Polyline3dclip (const Polyline3d &, const GEOM_FT &tol=0.0) const
 Return the polyline chunks that result from clipping the given polyline with this half space. More...
 
boost::python::list clipPy (const Polyline3d &, const GEOM_FT &tol=0.0) const
 Return the polyline chunks that result from clipping the given polyline with this half space. More...
 
void Print (std::ostream &os) const
 Imprime el half space.
 
- Public Member Functions inherited from GeomObj3d
GEOM_FT GetXMax (void) const
 
GEOM_FT GetYMax (void) const
 
GEOM_FT GetZMax (void) const
 
GEOM_FT GetXMin (void) const
 
GEOM_FT GetYMin (void) const
 
GEOM_FT GetZMin (void) const
 
virtual void XProjection (void)
 
virtual void YProjection (void)
 
virtual void ZProjection (void)
 
virtual Pos3d Projection (const Pos3d &) const
 Return the orthogonal projection onto the line. More...
 
virtual Vector3d Projection (const Vector3d &) const
 Return the projection onto the line. More...
 
Pos3d getPMax (void) const
 
Pos3d getPMin (void) const
 
BND3d Bnd (void) const
 Return the boundary of the object.
 
virtual bool Out (const Pos3d &p, const double &tol=0.0) const
 Return true if the point lies outside the object.
 
virtual GEOM_FT getCenterOfMassFactor (void) const
 Return the factor used for the computation of the center of mass (1.0 by default). More...
 
virtual GEOM_FT Pxz (void) const
 
virtual GEOM_FT Pyz (void) const
 
GEOM_FT I (const unsigned short int &i, const unsigned short int &j) const
 
virtual GEOM_FT IArea (void) const
 
GEOM_FT I (const Pos3d &O, const Vector3d &e) const
 Return el moment of inertia with respect to the axis that passes through O with the direction of e. More...
 
GEOM_FT I (const Line3d &r) const
 Return el moment of inertia with respect to the argument line.
 
GEOM_FT I (const unsigned short int i, const unsigned short int j, const Pos3d &o) const
 Return el moment of inertia (i,j) respect to the axis parallel to i through o. More...
 
GEOM_FT IO (const Pos3d &o) const
 Return the polar moment of inertia with respect to the point o.
 
FT_matrix I (void) const
 Return the inertia tensor with respect to the center of mass of the object. More...
 
FT_matrix I (const Pos3d &o) const
 Return the inertia tensor with respect to the point o.
 
- Public Member Functions inherited from GeomObj
 GeomObj (void)
 Constructor.
 
virtual bool hasCenterOfMass (void) const
 Return true if the object has a center of mass.
 
GEOM_FT getCenterOfMassArea (void) const
 Return the dimension used to compute the center of mass, as follows: More...
 
virtual void Plot (Plotter &) const
 
- Public Member Functions inherited from ProtoGeom
 ProtoGeom (void)
 False when solution is not possible: intersection of parallel planes. More...
 
void setExists (bool e)
 
bool exists (void) const
 
boost::python::dict getPyDict (void) const
 Return a Python dictionary with the object members values.
 
void setPyDict (const boost::python::dict &)
 Set the values of the object members from a Python dictionary.
 
- Public Member Functions inherited from CommandEntity
 CommandEntity (CommandEntity *owr=nullptr)
 Default constructor.
 
CommandEntityOwner (void)
 Return a pointer to the object owner.
 
const CommandEntityOwner (void) const
 Return un puntero al objeto propietario de ESTE.
 
const StandardOutputWrappergetStandardOutputWrapper (void) const
 Return the regular output stream wrapper.
 
StandardOutputWrappergetStandardOutputWrapper (void)
 Return the regular output stream wrapper.
 
const std::string & getLogFileName (void) const
 Returns log file name.
 
void setLogFileName (const std::string &)
 Sets log file name.
 
const std::string & getErrFileName (void) const
 Returns err file name.
 
void setErrFileName (const std::string &)
 Sets error file name.
 
const std::string & getOutputFileName (void) const
 Returns regular output file name.
 
void setOutputFileName (const std::string &)
 Sets regular output file name.
 
boost::python::object evalPy (boost::python::object dict, const std::string &)
 Return the Python object that results from evaluating the argument.
 
boost::python::object execPy (boost::python::object dict, const std::string &)
 Return the Python objects that results from executing the code in the string argument.
 
boost::python::object execFilePy (boost::python::object dict, const std::string &)
 Return the Python object that results from executing the code in the file.
 
- Public Member Functions inherited from EntityWithProperties
 EntityWithProperties (EntityWithProperties *owr=nullptr)
 Default constructor.
 
void clearPyProps (void)
 Clear python properties map.
 
bool hasPyProp (const std::string &)
 Returns true if property exists.
 
boost::python::object getPyProp (const std::string &str)
 Return the Python object with the name being passed as parameter.
 
void setPyProp (std::string str, boost::python::object val)
 Sets/appends a value tho the Python object's dictionary.
 
void copyPropsFrom (const EntityWithProperties &)
 Copy the properties from the argument.
 
boost::python::list getPropNames (void) const
 Return the names of the object properties weightings.
 
const PythonDict & getPropertiesDict (void) const
 Return a std::map container with the properties of the object.
 
boost::python::dict getPyDict (void) const
 Return a Python dictionary containing the object members values.
 
void setPyDict (const boost::python::dict &)
 Set the values of the object members from a Python dictionary.
 
- Public Member Functions inherited from EntityWithOwner
 EntityWithOwner (EntityWithOwner *owr=nullptr)
 Default constructor.
 
 EntityWithOwner (const EntityWithOwner &)
 Copy constructor.
 
EntityWithOwneroperator= (const EntityWithOwner &)
 Assignment operator.
 
virtual bool operator== (const EntityWithOwner &) const
 Comparison operator.
 
virtual ~EntityWithOwner (void)
 Virtual destructor.
 
virtual std::string getClassName (void) const
 Returns demangled class name.
 
void set_owner (EntityWithOwner *owr)
 Assigns the owner of the object.
 
EntityWithOwnerOwner (void)
 
const EntityWithOwnerOwner (void) const
 

Additional Inherited Members

- Public Types inherited from GeomObj3d
typedef PolyPos< Pos3dlist_Pos3d
 
- Public Types inherited from GeomObj
typedef PolyPos< Pos3dlist_Pos3d
 
typedef PolyPos< Pos2dlist_Pos2d
 
- Public Types inherited from EntityWithProperties
typedef std::map< std::string, boost::python::object > PythonDict
 
- Static Public Member Functions inherited from CommandEntity
static void resetStandardOutput (void)
 Reset the standard output streams to its defaults buffers.
 
- Static Public Member Functions inherited from EntityWithOwner
static int getVerbosityLevel (void)
 Get the value of the verbosity level.
 
static void setVerbosityLevel (const int &)
 Set the value of the verbosity level.
 
- Protected Member Functions inherited from CommandEntity
template<class T >
void string_to (T &, const std::string &) const
 
- Protected Member Functions inherited from EntityWithProperties
bool isEqual (const EntityWithProperties &) const
 Return true if both objects are equal.
 
- Protected Member Functions inherited from EntityWithOwner
virtual bool isEqual (const EntityWithOwner &) const
 Return true if both objects are equal.
 
- Static Protected Member Functions inherited from CommandEntity
static CommandEntityentcmd_cast (boost::any &data)
 
- Static Protected Attributes inherited from EntityWithOwner
static int verbosity = 1
 Object that owns THIS ONE. More...
 

Detailed Description

The points of the half space are those that line at the back of the plane, this being understood as those that return a zero or negative value when evaluating on them the general equation of the plane, i.

e.:

A*x_i+B*y_i+C*z_i+D <= 0

with the point coordinates: (x_i,y_i,z_i).

Constructor & Destructor Documentation

◆ HalfSpace3d()

HalfSpace3d::HalfSpace3d ( const Plane pl,
const Pos3d pt 
)

Constructor.

Parameters
plplane that limits the half-space
ptpoint contained in the half-space.

Member Function Documentation

◆ clip()

std::deque< Polyline3d > HalfSpace3d::clip ( const Polyline3d pline,
const GEOM_FT &  tol = 0.0 
) const

Return the polyline chunks that result from clipping the given polyline with this half space.

◆ clipPy()

boost::python::list HalfSpace3d::clipPy ( const Polyline3d pline,
const GEOM_FT &  tol = 0.0 
) const

Return the polyline chunks that result from clipping the given polyline with this half space.

◆ In()

bool HalfSpace3d::In ( const Pos3d p,
const double &  tol = 0.0 
) const
virtual

Return true if the point is inside the half-space.

The points of the edge plane belong to the half-plane.

Reimplemented from GeomObj3d.

◆ intersects() [1/4]

bool HalfSpace3d::intersects ( const Line3d l) const

Return true if part of the line is inside the half-space.

◆ intersects() [2/4]

bool HalfSpace3d::intersects ( const Ray3d r) const

Return true if part of the ray is inside the half-space.

◆ intersects() [3/4]

bool HalfSpace3d::intersects ( const Segment3d sg) const

Return true if part of the segment is inside the half-space.

◆ intersects() [4/4]

bool HalfSpace3d::intersects ( const Polyline3d pline) const

Return true if part of the polyline is inside the half-space.

◆ NormalExterior()

Vector3d HalfSpace3d::NormalExterior ( void  ) const

Return a vector normal to the boundary plane oriented inside-out.

◆ NormalInterior()

Vector3d HalfSpace3d::NormalInterior ( void  ) const

Return a vector normal to the boundary plane oriented outside-in.


The documentation for this class was generated from the following files: