Click or drag to resize
AB4D logo

Line3DFactoryCreateRectangle3D(Point3D, Size, Vector3D, Vector3D, Double, Color, Visual3D) 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,
	Visual3D parentVisual3D
)

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
parentVisual3D  Visual3D
parent Visual3D

Return Value

GeometryModel3D
GeometryModel3D that defines the 3D rectangle
See Also