Classes | Functions
Core3D

Classes

class  sal3d::Movement3D
 A 3D transformation representation (rotation and translation.) More...
class  sal3d::COP
 Cloud of Points defining a 3D surface. More...
class  sal3d::Mesh
 Structure defining a surface composed of vertices and triangles. More...
class  sal3d::ZMap
 Projection of a COP on the XY plane. More...

Functions

sal3d::Point3D operator* (const sal3d::Movement3D &movement, const sal3d::Point3D point)
 Transforms a Point3D using a 3D movement.
sal3d::Movement3D operator* (const sal3d::Movement3D &lhsMovement, const sal3d::Movement3D &rhsMovement)
 Performs the multiplication of two 3D movements.
sal3d::Point2D operator* (const sal3d::Projection2D &projection, const sal3d::Point3D &point3D)
 Projects a Point3D to a 2D surface using a Projection2D.
static Mesh sal3d::Mesh::MeshFromPLY (const std::string &filename)
 Creates a Mesh from a PLY file.
static Mesh sal3d::Mesh::MeshFromSTL (const std::string &filename)
 Creates a Mesh from a STL file.

Function Documentation

static Mesh sal3d::Mesh::MeshFromPLY ( const std::string &  filename) [inline, static]

Creates a Mesh from a PLY file.

This function requires linking with core3d.lib (import library for core3d.dll).

This function loads a PLY from file and creates a Mesh structure with the surface.

Parameters:
[in]filenameThe PLY file to load.
Returns:
The newly created Mesh.
Exceptions:
sal3d::ErrorOn error

References sal3d::Mesh::Mesh().

static Mesh sal3d::Mesh::MeshFromSTL ( const std::string &  filename) [inline, static]

Creates a Mesh from a STL file.

This function requires linking with core3d.lib (import library for core3d.dll).

This function loads a STL from file and creates a Mesh structure with the surface.

Parameters:
[in]filenameThe STL file to load.
Returns:
The newly created Mesh.
Exceptions:
sal3d::ErrorOn error

References sal3d::Mesh::Mesh().

sal3d::Point3D operator* ( const sal3d::Movement3D movement,
const sal3d::Point3D  point 
) [inline]

Transforms a Point3D using a 3D movement.

Parameters:
[in]movementThe movement to use to transform the point.
[in]pointThe point to transform.
Returns:
The point transformed (rotated and/or translated) by movement.

References sal3d::Point3D::x(), sal3d::Point3D::y(), and sal3d::Point3D::z().

sal3d::Movement3D operator* ( const sal3d::Movement3D lhsMovement,
const sal3d::Movement3D rhsMovement 
) [inline]

Performs the multiplication of two 3D movements.

Parameters:
[in]lhsMovementThe movement on the left side of the multiplication.
[in]rhsMovementThe movement on the right side of the multiplication.
Returns:
The movement resulting of the multiplication of two 3D movements.
sal3d::Point2D operator* ( const sal3d::Projection2D projection,
const sal3d::Point3D point3D 
) [inline]

Projects a Point3D to a 2D surface using a Projection2D.

Parameters:
[in]projectionThe Projection2D used to map the 3D point to 2D coordinates.
[in]point3DThe Point3D to transform.
Returns:
The point projected to a 2D window defined by this Projection2D.
Exceptions:
sal3d::ErrorOn error

References sal3d::Point3D::c_point_3d().