CADability dotNET
Creates a Solid, a Shell or a Face by rotating a Path, a Face or a Shell around a given axis. Rotating a path yields a shell, rotating a face or a shell returns a Solid. Rotating a different type of IGeoObject returns null.

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

Syntax

C#
public static IGeoObject MakeRevolution(
	IGeoObject faceShellOrPath,
	GeoPoint location,
	GeoVector direction,
	double sweep,
	Project project
)
Visual Basic
Public Shared Function MakeRevolution ( _
	faceShellOrPath As IGeoObject, _
	location As GeoPoint, _
	direction As GeoVector, _
	sweep As Double, _
	project As Project _
) As IGeoObject
Visual C++
public:
static IGeoObject^ MakeRevolution(
	IGeoObject^ faceShellOrPath, 
	GeoPoint location, 
	GeoVector direction, 
	double sweep, 
	Project^ project
)

Parameters

faceShellOrPath
Type: CADability.GeoObject..::..IGeoObject
object to rotate
location
Type: CADability..::..GeoPoint
a point on the axis
direction
Type: CADability..::..GeoVector
direction of the axis
sweep
Type: System..::..Double
amount to rotate (2*Math.PI is a full rotation)
project
Type: CADability..::..Project
the Project to set default styles for the result

Return Value

the created solid or shell

See Also