vrmlproc & togeom
 
Loading...
Searching...
No Matches
vrml_proc::math::cgal Namespace Reference

Namespace containing basic CGAL types. More...

Typedefs

using CGALKernel = CGAL::Simple_cartesian<double>
 
using CGALVector3 = CGALKernel::Vector_3
 
using CGALPoint = CGALKernel::Point_3
 

Functions

CGALVector3 Vec3fToCGALVector3 (const vrml_proc::parser::model::Vec3f &vec3)
 Converts Ve3f to CGAL vector.
 
CGALPoint Vec3fToCGALPoint (const vrml_proc::parser::model::Vec3f &vec3)
 Converts Ve3f to CGAL point.
 
std::vector< CGALPoint > Vec3fArrayToCGALPoints (const vrml_proc::parser::model::Vec3fArray &vec3Array)
 Converts an array of Vec3f vectors into list of CGAL points.
 

Detailed Description

Namespace containing basic CGAL types.

Todo
Ideally, vrmlproc should be link CGAl at all, and all these types should be defined in togeom. However, because vrmlproc's TransformationMatrix is dependent on CGAl matrix type, this cannot be done until we use diiferent abstraction for matrix.

Function Documentation

◆ Vec3fArrayToCGALPoints()

std::vector< CGALPoint > vrml_proc::math::cgal::Vec3fArrayToCGALPoints ( const vrml_proc::parser::model::Vec3fArray & vec3Array)
inline

Converts an array of Vec3f vectors into list of CGAL points.

Parameters
vec3Arrayarray of vectors to convert
Returns
list of CGAL points

◆ Vec3fToCGALPoint()

CGALPoint vrml_proc::math::cgal::Vec3fToCGALPoint ( const vrml_proc::parser::model::Vec3f & vec3)
inline

Converts Ve3f to CGAL point.

Parameters
vec3vector to convert
Returns
CGAl converted point

◆ Vec3fToCGALVector3()

CGALVector3 vrml_proc::math::cgal::Vec3fToCGALVector3 ( const vrml_proc::parser::model::Vec3f & vec3)
inline

Converts Ve3f to CGAL vector.

Parameters
vec3vector to convert
Returns
CGAl converted vector