Interface ISurface
Base interface that all surface interface must implement.
Namespace: Paramdigma.Core.Geometry.Interfaces
Assembly: Paramdigma.Core.dll
Syntax
public interface ISurface
Properties
| Improve this Doc View SourceDomainU
Gets the domain in the U direction.
Declaration
Interval DomainU { get; }
Property Value
Type | Description |
---|---|
Interval |
DomainV
Gets the domain in the V direction.
Declaration
Interval DomainV { get; }
Property Value
Type | Description |
---|---|
Interval |
Methods
| Improve this Doc View SourceClosestPointTo(Point3d)
Compute the projection of a point on this surface.
Declaration
Point3d ClosestPointTo(Point3d point)
Parameters
Type | Name | Description |
---|---|---|
Point3d | point | Point to compute distance to. |
Returns
Type | Description |
---|---|
Point3d | Projected 3d point on the surface. |
DistanceTo(Point3d)
Compute the distance between this surface and a point.
Declaration
double DistanceTo(Point3d point)
Parameters
Type | Name | Description |
---|---|---|
Point3d | point | Point to compute distance to. |
Returns
Type | Description |
---|---|
System.Double | Number representing the distance. |
FrameAt(Double, Double)
Compute the tangent plane at the specified surface coordinates.
Declaration
Plane FrameAt(double u, double v)
Parameters
Type | Name | Description |
---|---|---|
System.Double | u | U coordinate. |
System.Double | v | V coordinate. |
Returns
Type | Description |
---|---|
Plane | Tangent plane. |
NormalAt(Double, Double)
Compute the normal at the specified surface coordinates.
Declaration
Vector3d NormalAt(double u, double v)
Parameters
Type | Name | Description |
---|---|---|
System.Double | u | U coordinate. |
System.Double | v | V coordinate. |
Returns
Type | Description |
---|---|
Vector3d | Normal vector. |
PointAt(Double, Double)
Compute a point at the specified surface coordinates.
Declaration
Point3d PointAt(double u, double v)
Parameters
Type | Name | Description |
---|---|---|
System.Double | u | U coordinate. |
System.Double | v | V coordinate. |
Returns
Type | Description |
---|---|
Point3d |