DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

<PackageReference Include="DynamoVisualProgramming.ZeroTouchLibrary" Version="3.3.0-beta5546" />

 Cuboid

public class Cuboid : Solid
public double Height { get; }

Returns height distance. Note: This return the input dimensions of the Cuboid, NOT the actual world space dimensions. In other words, if you create a Cuboid width (X-axis) length 10, and transform it to a CoordinateSystem with 2 times scaling in X, the width will still be 10. ASM does not allow you to extract the Vertices of a body in any predictable order, so it impossible to determine the dimensions after a transform.

public double Length { get; }

Returns length distance. Note: This return the input dimensions of the Cuboid, NOT the actual world space dimensions. In other words, if you create a Cuboid width (X-axis) length 10, and transform it to a CoordinateSystem with 2 times scaling in X, the width will still be 10. ASM does not allow you to extract the Vertices of a body in any predictable order, so it impossible to determine the dimensions after a transform.

public double Width { get; }

Returns width distance. Note: This return the input dimensions of the Cuboid, NOT the actual world space dimensions. In other words, if you create a Cuboid width (X-axis) length 10, and transform it to a CoordinateSystem with 2 times scaling in X, the width will still be 10. ASM does not allow you to extract the Vertices of a body in any predictable order, so it impossible to determine the dimensions after a transform.

public static Cuboid ByCorners(Point lowPoint, Point highPoint)

Create an Cuboid spanning from low Point to high Point.

public static Cuboid ByLengths(double width = 1, double length = 1, double height = 1)

Create a Cuboid centered at WCS origin, with width, length, and height.

public static Cuboid ByLengths(Point origin, double width = 1, double length = 1, double height = 1)

Create a Cuboid centered at input Point, with specified width, length, and height.

public static Cuboid ByLengths(CoordinateSystem coordinateSystem, double width = 1, double length = 1, double height = 1)

Create a Cuboid centered at WCS origin, with width, length, and height.