C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
mesh_primitive.h File Reference

Base class for mesh data structures (MbMesh). Vertex. Polygon. More...

#include <mb_cart_point3d.h>
#include <templ_rp_array.h>
#include <templ_dptr.h>
#include <mesh_triangle.h>
#include <attribute_container.h>
#include <mb_cube.h>
#include <mb_data.h>
#include <model_item.h>

Classes

class  MbPrimitive
 Primitive. More...
 
class  MbApex3D
 Apex (point). More...
 
class  MbExactApex3D
 Apex on double data. More...
 
class  MbFloatApex3D
 Apex on float data. More...
 
class  MbPolygon3D
 Polygon. More...
 
class  MbGrid
 Triangulation. More...
 

Namespaces

 c3d
 C3D namespace declaration.
 

Enumerations

enum  MbePrimitiveType {
  pt_Apex3D , pt_ExactApex3D , pt_FloatApex3D , pt_Polygon3D ,
  pt_ExactPolygon3D , pt_FloatPolygon3D , pt_Grid , pt_ExactGrid ,
  pt_FloatGrid
}
 Types of primitives. More...
 

Functions

float LineToSegmentDistanceSquared (const MbFloatPoint3D &seg_base, const MbFloatPoint3D &seg_end, const MbFloatAxis3D &line, float &tRes)
 Calculate squared distance from straight line to segment of polygon. More...
 
float LineToSegmentDistanceSquared (const MbFloatPoint3D &seg_base, const MbFloatPoint3D &seg_end, const MbFloatAxis3D &line, MbFloatVector3D &vRes, float &tRes)
 Calculate squared distance from straight line to segment of polygon. More...
 
float LineToPolyDistanceSquared (const MbPolygon3D &poly, const MbFloatAxis3D &line, float delta, MbFloatPoint3D &nearestPoint, float &tRes)
 Calculate squared distance from a line to a polygon. More...
 
float LineToPolyDistanceSquared (const MbPolygon3D &poly, const MbFloatAxis3D &line, float delta, const MbPlacement3D &cutPlace, MbFloatPoint3D &nearestPoint, float &tRes)
 Calculate squared distance from a line to a polygon. More...
 
float LineToPolyDistanceSquared (const MbPolygon3D &poly, const MbFloatAxis3D &line, float delta, const std::vector< MbPlacement3D > &cutPlaces, MbFloatPoint3D &nearestPoint, float &tRes)
 Calculate squared distance from a line to a polygon. More...
 
template<class Double , class Point , class Vector , class Axis >
Double LineToPointDistance (const Axis &line, const Point &to, Double &tRes)
 Calculate the distance from a line to a point. More...
 
template<class Double , class Point , class Vector , class Axis , class Placement >
Double LineToPointDistance (const Axis &line, const Point &to, const Placement &cutPlace, Double &tRes)
 Calculate the distance from a line to a point. More...
 

Detailed Description

Base class for mesh data structures (MbMesh). Vertex. Polygon.