CADability dotNET
Creates a prism or profile as an extrusion of the provided shape. The position of the prism is defined by location and mainDirection. The shape is a 2D object. The 2d origin is moved along the axis defined by location and main direction. The topDirection vector corresponds to the 2d y-axis of the shape. The beginning and ending of the extrusion is a miter cut that allows the same profile be conected to the starting or ending point where mainDirection and startMiter are exchanged and topDirection is kept.

Namespace: CADability.GeoObject
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public static Solid MakePrismMiter(
	SimpleShape shape,
	GeoPoint location,
	GeoVector topDirection,
	GeoVector mainDirection,
	GeoVector startMiter,
	GeoVector endMiter
)
Visual Basic
Public Shared Function MakePrismMiter ( _
	shape As SimpleShape, _
	location As GeoPoint, _
	topDirection As GeoVector, _
	mainDirection As GeoVector, _
	startMiter As GeoVector, _
	endMiter As GeoVector _
) As Solid
Visual C++
public:
static Solid^ MakePrismMiter(
	SimpleShape^ shape, 
	GeoPoint location, 
	GeoVector topDirection, 
	GeoVector mainDirection, 
	GeoVector startMiter, 
	GeoVector endMiter
)

Parameters

shape
Type: CADability.Shapes..::..SimpleShape
2d shape to be extruded, the 2d origin is moved along mainDirection
location
Type: CADability..::..GeoPoint
Starting point of the resulting profile, corresponds to the 2d origin
topDirection
Type: CADability..::..GeoVector
The "up" direction fo the resulting profile, corresponds to the y-axis of the 2d shape
mainDirection
Type: CADability..::..GeoVector
Direction of the prism, the length of this vector defines the length of the prism
startMiter
Type: CADability..::..GeoVector
Direction of the connectiong profile at the starting point
endMiter
Type: CADability..::..GeoVector
Direction of the connecting profile at the ending point

Return Value

The resulting solid

See Also