Method Extrude
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Extrude(GeoPolygon3, GeoVector3)
Makes the body a flat polygon sweeps out moving along a vector, using the default tolerance.
public static GeoSolid3 Extrude(GeoPolygon3 profile, GeoVector3 direction)
Parameters
profileGeoPolygon3directionGeoVector3
Returns
Extrude(GeoPolygon3, GeoVector3, Tolerance)
Makes the body a flat polygon sweeps out moving along a vector: a prism, upright or leaning.
public static GeoSolid3 Extrude(GeoPolygon3 profile, GeoVector3 direction, Tolerance tolerance)
Parameters
profileGeoPolygon3The polygon; it is one end of the body.
directionGeoVector3How far and which way the profile moves; any way out of its plane.
toleranceToleranceThe tolerance deciding whether the direction leaves the plane.
Returns
- GeoSolid3
The body, wound outwards whichever way round the profile was drawn.
Exceptions
- ArgumentNullException
Thrown when the profile is null.
- ArgumentException
Thrown when the direction lies in the plane of the profile.
Extrude(GeoFace3, GeoVector3)
Makes the body a flat face sweeps out moving along a vector, using the default tolerance.
public static GeoSolid3 Extrude(GeoFace3 profile, GeoVector3 direction)
Parameters
profileGeoFace3directionGeoVector3
Returns
Extrude(GeoFace3, GeoVector3, Tolerance)
Makes the body a flat face sweeps out moving along a vector: each hole of the face runs through the body as a shaft.
public static GeoSolid3 Extrude(GeoFace3 profile, GeoVector3 direction, Tolerance tolerance)
Parameters
profileGeoFace3The face; it is one end of the body.
directionGeoVector3How far and which way the face moves; any way out of its plane.
toleranceToleranceThe tolerance deciding whether the direction leaves the plane.
Returns
- GeoSolid3
The body, wound outwards.
Exceptions
- ArgumentNullException
Thrown when the profile is null.
- ArgumentException
Thrown when the direction lies in the plane of the face.
Extrude(GeoPolygon2, GeoCoordinateSystem3, double)
Makes the body a profile drawn in a plane sweeps out moving straight out of it, using the default tolerance.
public static GeoSolid3 Extrude(GeoPolygon2 profile, GeoCoordinateSystem3 placement, double length)
Parameters
profileGeoPolygon2placementGeoCoordinateSystem3lengthdouble
Returns
Extrude(GeoPolygon2, GeoCoordinateSystem3, double, Tolerance)
Makes the body a profile drawn in a plane sweeps out moving straight out of it: a plate from its outline, a member from its section.
public static GeoSolid3 Extrude(GeoPolygon2 profile, GeoCoordinateSystem3 placement, double length, Tolerance tolerance)
Parameters
profileGeoPolygon2The profile, drawn in the XY plane of the placement.
placementGeoCoordinateSystem3Where the profile stands; the body runs along its Z axis.
lengthdoubleHow far along Z; negative runs the other way.
toleranceToleranceThe tolerance.
Returns
- GeoSolid3
The body, wound outwards.
Exceptions
- ArgumentNullException
Thrown when the profile is null.
- ArgumentException
Thrown when the length is too short to sweep out any volume.
Extrude(GeoFace2, GeoCoordinateSystem3, double)
Makes the body a face drawn in a plane sweeps out moving straight out of it, using the default tolerance.
public static GeoSolid3 Extrude(GeoFace2 profile, GeoCoordinateSystem3 placement, double length)
Parameters
profileGeoFace2placementGeoCoordinateSystem3lengthdouble
Returns
Extrude(GeoFace2, GeoCoordinateSystem3, double, Tolerance)
Makes the body a face drawn in a plane sweeps out moving straight out of it: each hole of the face runs through the body.
public static GeoSolid3 Extrude(GeoFace2 profile, GeoCoordinateSystem3 placement, double length, Tolerance tolerance)
Parameters
profileGeoFace2The face, drawn in the XY plane of the placement.
placementGeoCoordinateSystem3Where the face stands; the body runs along its Z axis.
lengthdoubleHow far along Z; negative runs the other way.
toleranceToleranceThe tolerance.
Returns
- GeoSolid3
The body, wound outwards.
Exceptions
- ArgumentNullException
Thrown when the profile is null.
- ArgumentException
Thrown when the length is too short to sweep out any volume.
Extrude(GeoPolygonArc2, GeoCoordinateSystem3, double, double)
Makes the body a curved loop drawn in a plane sweeps out moving straight out of it, using the default tolerance.
public static GeoSolid3 Extrude(GeoPolygonArc2 profile, GeoCoordinateSystem3 placement, double length, double chordTolerance)
Parameters
profileGeoPolygonArc2placementGeoCoordinateSystem3lengthdoublechordTolerancedouble
Returns
Extrude(GeoPolygonArc2, GeoCoordinateSystem3, double, double, Tolerance)
Makes the body a curved loop drawn in a plane sweeps out moving straight out of it, its arcs cut into chords no further than a tolerance from them.
public static GeoSolid3 Extrude(GeoPolygonArc2 profile, GeoCoordinateSystem3 placement, double length, double chordTolerance, Tolerance tolerance)
Parameters
profileGeoPolygonArc2The loop, drawn in the XY plane of the placement.
placementGeoCoordinateSystem3Where the loop stands; the body runs along its Z axis.
lengthdoubleHow far along Z; negative runs the other way.
chordTolerancedoubleThe largest gap allowed between a chord and its arc; nought picks one from the radius.
toleranceToleranceThe tolerance.
Returns
- GeoSolid3
The body, wound outwards.
Exceptions
- ArgumentNullException
Thrown when the profile is null.
- ArgumentException
Thrown when the length is too short to sweep out any volume.