Cylinder
References[StructLayout(LayoutKind.Sequential, Pack = 8, Size = 152)]
[Serializable]
public struct Cylinder : IEpsilonComparable<Cylinder>
Represents the values of a plane, a radius and two heights -on top and beneath- that define a right circular cylinder.
Constructors
Constructs a new cylinder with a finite height.
Properties
Gets or sets the base plane of the cylinder.
Gets or sets the start height of the cylinder. The center of bottom cap is: BasePlane.Origin + Height1 * BasePlane.ZAxis.
Gets or sets the end height of the cylinder. If the end height equals the start height, the cylinder is presumed to be infinite. The center of top cap is: BasePlane.Origin + Height2 * BasePlane.ZAxis.
true if the cylinder is finite (Height0 != Height1) false if the cylinder is infinite.
Gets a boolean value indicating whether this cylinder is valid.
A valid cylinder is represented by a valid circle and two valid heights.
Gets the height of the cylinder. Infinite cylinders have a height of zero, not Double.PositiveInfinity.
Methods
Compute the circle at the given elevation parameter.
Parameters:
| linearParameter (double) | Height parameter for circle section. |
Check that all values in other are within epsilon of the values in this
Implements: EpsilonEquals
Compute the line at the given angle parameter. This line will be degenerate if the cylinder is infinite.
Parameters:
| angularParameter (double) | Angle parameter for line section. |
Constructs a Brep representation of this Cylinder. This is synonymous with calling NurbsSurface.CreateFromCylinder().
Constructs a Nurbs surface representation of this cylinder. This is synonymous with calling NurbsSurface.CreateFromCylinder().
Returns: A Nurbs surface representation of the cylinder or null.
Constructs a RevSurface representation of this Cylinder. This is synonymous with calling RevSurface.CreateFromCylinder().
Returns: A RevSurface representation of the cylinder or null.