StairStep

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

Constructors

StairStep

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

Properties

Index

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

SideL

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

SideR

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

Methods

Edge0

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

Edge1

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

Face

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

Rise0

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

Rise1

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

SideLeft3D

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

SideRight3D

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

Vertex0

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

Vertex1

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

Vertex2

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

Vertex3

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

Z

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