cgv
Loading...
Searching...
No Matches
cgv::math::arc_length_bezier_approximation< T > Class Template Reference

Provide arc length information of a parametric curve using an approximation via multiple cubic bezier segments. More...

#include <parametric_curve.h>

Inheritance diagram for cgv::math::arc_length_bezier_approximation< T >:
cgv::math::curve_arc_length< arc_length_bezier_approximation< T >, T >

Public Member Functions

template<template< class > class CurveT, cgv::type::uint32_type N>
 arc_length_bezier_approximation (const parametric_curve< CurveT< fvec< T, N > > > &curve, int num_segments=4, int num_segment_subdivisions=8)
 
evaluate (T t) const
 
total_length () const
 
- Public Member Functions inherited from cgv::math::curve_arc_length< arc_length_bezier_approximation< T >, T >
evaluate (T t) const
 Evaluate the arc length of the curve.
 
total_length () const
 Return the arc length of the complete curve for t from 0 to 1.
 

Detailed Description

template<typename T>
class cgv::math::arc_length_bezier_approximation< T >

Provide arc length information of a parametric curve using an approximation via multiple cubic bezier segments.

Slower than arc_length_linear_approximation with typically lower memory consumption.

Definition at line 177 of file parametric_curve.h.

Constructor & Destructor Documentation

◆ arc_length_bezier_approximation()

template<typename T >
template<template< class > class CurveT, cgv::type::uint32_type N>
cgv::math::arc_length_bezier_approximation< T >::arc_length_bezier_approximation ( const parametric_curve< CurveT< fvec< T, N > > > &  curve,
int  num_segments = 4,
int  num_segment_subdivisions = 8 
)
inline

Definition at line 180 of file parametric_curve.h.

Member Function Documentation

◆ evaluate()

template<typename T >
T cgv::math::arc_length_bezier_approximation< T >::evaluate ( t) const
inline

Definition at line 230 of file parametric_curve.h.

◆ total_length()

template<typename T >
T cgv::math::arc_length_bezier_approximation< T >::total_length ( ) const
inline

Definition at line 254 of file parametric_curve.h.


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