MeshLib Documentation
Loading...
Searching...
No Matches
Contour

Functions

template<typename T , typename R = T>
MR::calcOrientedArea (const Contour2< T > &contour)
 
template<typename T , typename R = T>
Vector3< R > MR::calcOrientedArea (const Contour3< T > &contour)
 
template<typename To , typename From >
To MR::copyContour (const From &from)
 copy double-contour to float-contour, or vice versa
 
template<typename To , typename From >
To MR::copyContours (const From &from)
 copy double-contours to float-contours, or vice versa
 

Detailed Description

Function Documentation

◆ calcOrientedArea() [1/2]

template<typename T , typename R = T>
R MR::calcOrientedArea ( const Contour2< T > & contour)

>0 for clockwise loop, < 0 for CCW loop

Template Parameters
Ris the type for the accumulation and for result

◆ calcOrientedArea() [2/2]

template<typename T , typename R = T>
Vector3< R > MR::calcOrientedArea ( const Contour3< T > & contour)

returns the vector with the magnitude equal to contour area, and directed to see the contour in ccw order from the vector tip

Template Parameters
Ris the type for the accumulation and for result

◆ copyContour()

template<typename To , typename From >
To MR::copyContour ( const From & from)

copy double-contour to float-contour, or vice versa

◆ copyContours()

template<typename To , typename From >
To MR::copyContours ( const From & from)

copy double-contours to float-contours, or vice versa