Project
Loading...
Searching...
No Matches
o2::cad::surface::SurfaceEdge Struct Reference

One straight line segment of a polygon wire, in a surface's parametric (u, v) domain. More...

#include <BoundedSurface.h>

Public Member Functions

Vec2 direction () const
 
double lengthSq () const
 
bool degenerate () const
 
double distanceSq (const Vec2 &point) const
 Squared distance from a parametric point to this edge.
 
Vec2 closestPoint (const Vec2 &point, double &parameter) const
 
void extendBounds (Vec2 &lower, Vec2 &upper) const
 Accumulate the edge endpoints into a parametric axis-aligned bounding box.
 

Public Attributes

Vec2 start
 
Vec2 end
 

Detailed Description

One straight line segment of a polygon wire, in a surface's parametric (u, v) domain.

Definition at line 337 of file BoundedSurface.h.

Member Function Documentation

◆ closestPoint()

Vec2 o2::cad::surface::SurfaceEdge::closestPoint ( const Vec2 point,
double &  parameter 
) const
inline

Closest point on this edge to point. Returns the projected point and its clamped parameter parameter in [0, 1] (0 at start, 1 at end). Degenerate edges return start.

Definition at line 356 of file BoundedSurface.h.

◆ degenerate()

bool o2::cad::surface::SurfaceEdge::degenerate ( ) const
inline

Definition at line 349 of file BoundedSurface.h.

◆ direction()

Vec2 o2::cad::surface::SurfaceEdge::direction ( ) const
inline

Definition at line 341 of file BoundedSurface.h.

◆ distanceSq()

double o2::cad::surface::SurfaceEdge::distanceSq ( const Vec2 point) const
inline

Squared distance from a parametric point to this edge.

Definition at line 352 of file BoundedSurface.h.

◆ extendBounds()

void o2::cad::surface::SurfaceEdge::extendBounds ( Vec2 lower,
Vec2 upper 
) const
inline

Accumulate the edge endpoints into a parametric axis-aligned bounding box.

Definition at line 373 of file BoundedSurface.h.

◆ lengthSq()

double o2::cad::surface::SurfaceEdge::lengthSq ( ) const
inline

Definition at line 343 of file BoundedSurface.h.

Member Data Documentation

◆ end

Vec2 o2::cad::surface::SurfaceEdge::end

Definition at line 339 of file BoundedSurface.h.

◆ start

Vec2 o2::cad::surface::SurfaceEdge::start

Definition at line 338 of file BoundedSurface.h.


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