compas_brep.edge
¤
Classes¤
BrepEdge
¤
BrepEdge(
start: BrepVertex,
end: BrepVertex,
curve: Line | Circle | Ellipse | NurbsCurve | None = None,
domain: tuple[float, float] | None = None,
)
A Brep edge defined by start/end vertices and a 3D curve.
The curve is a Line, a Circle, an Ellipse, or a NurbsCurve.
An analytic curve (Circle / Ellipse) is an unbounded closed conic, so
the edge also carries domain -- the parameter interval it actually runs
over, in the parameter space :func:compas_brep.exchange.analytic_curve_point
defines. A quarter-circle fillet edge and a full circular seam are the same
Circle with different domains. Line and NurbsCurve carry their own
extent, so their domain is None.
- API Reference
Attributes¤
domain
property
writable
¤
The parameter interval this edge runs over, for an analytic curve.
end_vertex
property
¤
end_vertex: BrepVertex
Alias of :attr:last_vertex, for compatibility with compas_rhino.
is_arc
property
¤
is_arc: bool
True for an edge running along part of a circle, not the whole of it.
is_circle
property
¤
is_circle: bool
True for a full circular edge. A partial one is an arc -- see :attr:is_arc.
start_vertex
property
¤
start_vertex: BrepVertex
Alias of :attr:first_vertex, for compatibility with compas_rhino.