Click or drag to resize
AB4D logo

Line3DFactoryCreateRectangle3D(Point3D, Size, Vector3D, Vector3D, Double, Color, Double, Viewport3D) Method

Creates a 3D rectangle from four connected 3D lines.

Namespace: Ab3d.Models
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static GeometryModel3D CreateRectangle3D(
	Point3D position,
	Size size,
	Vector3D widthDirection,
	Vector3D heightDirection,
	double lineThickness,
	Color lineColor,
	double miterLimit,
	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
miterLimit  Double
double value that specifies how long the edge can be before it is turned into a beveled edge (specified in number of thicknesses)
parentViewport3D  Viewport3D
parent Viewport3D

Return Value

GeometryModel3D
GeometryModel3D that defines the 3D rectangle
See Also