cgv
|
Provide arc length information of a parametric curve using a piecewise linear approximation. More...
#include <parametric_curve.h>
Public Member Functions | |
template<template< class > class CurveT, cgv::type::uint32_type N> | |
arc_length_linear_approximation (const parametric_curve< CurveT< fvec< T, N > > > &curve, int num_samples=128) | |
T | evaluate (T t) const |
T | total_length () const |
const std::vector< T > & | lengths () const |
![]() | |
T | evaluate (T t) const |
Evaluate the arc length of the curve. | |
T | total_length () const |
Return the arc length of the complete curve for t from 0 to 1. | |
Provide arc length information of a parametric curve using a piecewise linear approximation.
Faster than arc_length_bezier_approximation with typically higher memory consumption.
Definition at line 137 of file parametric_curve.h.
|
inline |
Definition at line 140 of file parametric_curve.h.
|
inline |
Definition at line 158 of file parametric_curve.h.
|
inline |
Definition at line 166 of file parametric_curve.h.
|
inline |
Definition at line 162 of file parametric_curve.h.