|
Line3DFactoryCreateRectangle3D(Point3D, Size, Vector3D, Vector3D, Double, Color, Viewport3D) Method |
Creates a 3D rectangle from four connected 3D lines.
Namespace: Ab3d.ModelsAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public static GeometryModel3D CreateRectangle3D(
Point3D position,
Size size,
Vector3D widthDirection,
Vector3D heightDirection,
double lineThickness,
Color lineColor,
Viewport3D parentViewport3D
)
Parameters
- position Point3D
- position of the top left point of the rectangle
- size Size
- size of the rectangle
- widthDirection Vector3D
- direction of the width
- heightDirection Vector3D
- direction of the height
- lineThickness Double
- line thickness in screen coordinates
- lineColor Color
- line color
- parentViewport3D Viewport3D
- parent Viewport3D
Return Value
GeometryModel3DGeometryModel3D that defines the 3D rectangle
See Also