StairStep

References
public sealed class StairStep
A single step within a StairCase. A step is a planar, horizontal surface.

Constructors

StairStep

#
public StairStep(int index, Point2d[] rightSide, Point2d[] leftSide)
Constructor without any checks. You'd better be sure the values are correct if you want to use this.
index (int)
rightSide (Point2d[])
leftSide (Point2d[])

Properties

Index

#
public int Index { get; }
The index of this element within the staircase. This index determines the elevation of this step given a specific rise constant.

SideL

#
public Point2d[] SideL { get; }
Gets the points making up the left side of the step. This array contains at least two points.

SideR

#
public Point2d[] SideR { get; }
Gets the points making up the right side of the step. This array contains at least two points.

Methods

Edge0

#
public Line Edge0(double rise)
Gets the leading edge of the step from left to right.
rise (double)

Edge1

#
public Line Edge1(double rise)
Gets the trailing edge of the step from left to right.
rise (double)

Face

#
public Polyline Face(double rise)
Create the outline of the step top face. The polyline is always ordered anti-clockwise, starting from the left end of the leading edge.
rise (double)

Rise0

#
public Rectangle3d Rise0(double rise)
Create the outline of the front face (i.e. the rise) leading up to this step.
rise (double)

Rise1

#
public Rectangle3d Rise1(double rise)
Create the outline of the back face (i.e. the rise) trailing after this step.
rise (double)

SideLeft3D

#
public Point3d[] SideLeft3D(double rise)
Gets an array of points describing the left edge of the step.
rise (double)

SideRight3D

#
public Point3d[] SideRight3D(double rise)
Gets an array of points describing the right edge of the step.
rise (double)

Vertex0

#
public Point3d Vertex0(double rise)
Gets the front, left point of this step.
rise (double)

Vertex1

#
public Point3d Vertex1(double rise)
Gets the front, right point of this step.
rise (double)

Vertex2

#
public Point3d Vertex2(double rise)
Gets the back, right point of this step.
rise (double)

Vertex3

#
public Point3d Vertex3(double rise)
Gets the back, left point of this step.
rise (double)

Z

#
public double Z(double rise)
Gets the elevation of this step given a specific rise.
rise (double)