Line segment specified by its endpoints. More...
#include <brep.hpp>
Public Member Functions | |
| Line_segment (Mat< 3, 2 > endpoints) | |
| Mat< 3 > | point (Mat< 1 > params) const override |
| double | length () const |
| Mat< 2, 1 > | orig_param_bounds () const override |
| returns the parameter bounds in the original IGES definition (low, high) | |
Public Member Functions inherited from hexed::brep::Parametric< 1 > | |
| virtual Mat< 3 > | point (Mat< n_param > params) const=0 |
Obtains the point at parameters params. | |
| virtual Mat< n_param, 2 > | reparameterize (Mat< n_param, 2 > bounds) |
| May reparameterize the entity to keep parameters in [0, 1]. | |
| virtual Mat< n_param, 2 > | reparameterize (const std::vector< Mat< 3 > > &points) |
reparameterizes to contain the projections of points. | |
Line segment specified by its endpoints.
| hexed::brep::Line_segment::Line_segment | ( | Mat< 3, 2 > | endpoints | ) |
Each column of endpoints is an endpoint of the segment. They can be retrieved by point({0.}) and point({1.}), respectively.
|
overridevirtual |
returns the parameter bounds in the original IGES definition (low, high)
Implements hexed::brep::Parametric< 1 >.