Offset |
Definition of offset surface, quoted from the STEP manual ISO 10303-42:2000(E): This is a procedural definition of a simple offset surface at a normal distance from the originating surface. Distance may be positive, negative, or zero to indicate the preferred side of the surface. The offset surface takes its parametrization directly from that of its basis surface, corresponding points having identical parameter values. The offset surface is parametrized as O(u, v) = S(u, v) + d*N(u, v), where N(u, v) is the oriented unit normal vector of the basis surface S at parameter value (u, v), and d is the signed offset distance.
In Revit, we restrict the types of basis surfaces for which an OffsetSurf can be created for the following reasons:
The OffsetSurface class will own a copy of the basis surface and use it for many of its methods, which may implicitly assume that the OffsetSurface and the basis surface have the same envelope. So we keep the envelopes of the OffsetSurf and its basis surface in sync.
The OffsetSurface type exposes the following members.
Name | Description | |
---|---|---|
![]() | IsValidObject |
Specifies whether the .NET object represents a valid Revit entity.
(Inherited from Surface) |
![]() | OrientationMatchesParametricOrientation |
Indicates whether this Surface's orientation is the same as or opposite to its parametric orientation.
(Inherited from Surface) |
Name | Description | |
---|---|---|
![]() | Dispose | (Inherited from Surface) |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
![]() | GetBasisSurface | Returns a copy of basis surface of this OffsetSurface. |
![]() | GetBoundingBoxUV |
Gets the UV bounding box of the surface.
(Inherited from Surface) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object) |
![]() | GetOffsetDistance | Returns offset distance of this OffsetSurface. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() | IsOrientationSameAsBasisSurface | Indicates whether the orientation of the OffsetSurface is same as that of its basis surface, in the sense that their oriented normals at any (u, v) have the same direction. |
![]() | Project |
Project a 3D point orthogonally onto a surface (to find the nearest point).
Throws InvalidOperationException if the projection fails.
(Inherited from Surface) |
![]() | ProjectWithGuessPoint |
Project a 3D point orthogonally onto a surface (to find the nearest point).
This method is meant to be used when a good approximate solution for the projection is available.
Throws InvalidOperationException if the projection fails.
(Inherited from Surface) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object) |