Interface IRestrictedDomain
- Namespace
- CADability.GeoObject
- Assembly
- CADability.dll
Interface for surfaces with non rectangular definition space. Normally surfaces are either defined for all 2d values (infinite) or they are restricted to a rectangular domain (e.g. NurbsSurface). The NonPeriodicSurface is only defined on a circular area or on a ring. Maybe other surfaces with irregular domains will follow.
public interface IRestrictedDomain
Methods
AdaptToCurves(IEnumerable<ICurve>)
ISurface AdaptToCurves(IEnumerable<ICurve> curves)
Parameters
curvesIEnumerable<ICurve>
Returns
Clip(ICurve2D)
Clip the provided curve at the bounds of the domain. The result are pairs of parameters of the curve, which define segments, that are inside the domain.
double[] Clip(ICurve2D curve)
Parameters
curveICurve2D
Returns
- double[]
IsInside(GeoPoint2D)
True, if the provided uv value is inside the definition domain
bool IsInside(GeoPoint2D uv)
Parameters
uvGeoPoint2D
Returns
RestrictedPointAt(GeoPoint2D)
Same as PointAt(GeoPoint2D), but when uv is outside the definition domain, the resulting point is forced inside the domain
GeoPoint RestrictedPointAt(GeoPoint2D uv)
Parameters
uvGeoPoint2D