Esempio n. 1
0
 /// <summary>
 /// Construct a Surface by revolving curve about a line axis. Assuming
 /// sweep angle = 360 and start angle = 0.
 /// </summary>
 /// <param name="profile">Profile Curve for revolve surface.</param>
 /// <param name="axis">Line to define axis of revolution.</param>
 /// <returns>SRevolvedSurface</returns>
 public static RevolvedSurface Revolve(Curve profile, Line axis)
 {
     return(RevolvedSurface.ByProfileAxis(profile, axis));
 }
Esempio n. 2
0
 /// <summary>
 /// Construct a Surface by revolving the profile curve about an axis
 /// defined by axisOrigin point and axisDirection Vector.
 /// Assuming sweep angle = 360 and start angle = 0.
 /// </summary>
 /// <param name="profile">Profile Curve for revolve surface.</param>
 /// <param name="axisOrigin">Origin Point for axis of revolution.</param>
 /// <param name="axisDirection">Direction Vector for axis of revolution.</param>
 /// <returns>RevolvedSurface</returns>
 public static RevolvedSurface Revolve(Curve profile, Point axisOrigin, Vector axisDirection)
 {
     return(RevolvedSurface.ByProfileAxisOriginDirection(profile, axisOrigin, axisDirection));
 }
Esempio n. 3
0
 /// <summary>
 /// Construct a Surface by revolving  curve about a line axis. startAngle
 /// determines where the curve starts to revolve, sweepAngle determines
 /// the revolving angle.
 /// </summary>
 /// <param name="profile">Profile Curve for revolve surface.</param>
 /// <param name="axis">Line to define axis of revolution.</param>
 /// <param name="startAngle">Start Angle in degreee at which curve starts to revolve.</param>
 /// <param name="sweepAngle">Sweep Angle in degree to define the extent of revolve.</param>
 /// <returns>RevolvedSurface</returns>
 public static RevolvedSurface Revolve(Curve profile, Line axis, double startAngle, double sweepAngle)
 {
     return(RevolvedSurface.ByProfileAxisAngle(profile, axis, startAngle, sweepAngle));
 }
Esempio n. 4
0
 /// <summary>
 /// Construct a Surface by revolving the profile curve about an axis
 /// defined by axisOrigin point and axisDirection Vector. startAngle
 /// determines where the curve starts to revolve, sweepAngle determines
 /// the extent of the revolve.
 /// </summary>
 /// <param name="profile">Profile Curve for revolve surface.</param>
 /// <param name="axisOrigin">Origin Point for axis of revolution.</param>
 /// <param name="axisDirection">Direction Vector for axis of revolution.</param>
 /// <param name="startAngle">Start Angle in degreee at which curve starts to revolve.</param>
 /// <param name="sweepAngle">Sweep Angle in degree to define the extent of revolve.</param>
 /// <returns>RevolvedSurface</returns>
 public static RevolvedSurface Revolve(Curve profile, Point axisOrigin, Vector axisDirection, double startAngle, double sweepAngle)
 {
     return(RevolvedSurface.ByProfileAxisOriginDirectionAngle(profile, axisOrigin, axisDirection, startAngle, sweepAngle));
 }