示例#1
0
 /// <summary>
 /// Construct a solid by sweeping a face.
 /// </summary>
 /// <param name="perimeter">The perimeter of the face to sweep.</param>
 /// <param name="holes">The holes of the face to sweep.</param>
 /// <param name="distance">The distance to sweep.</param>
 /// <param name="bothSides">Should the sweep start offset by direction distance/2? </param>
 /// <param name="rotation">An optional rotation in degrees of the perimeter around the z axis.</param>
 /// <returns>A solid.</returns>
 public static Solid SweepFace(Polygon perimeter,
                               IList <Polygon> holes,
                               double distance,
                               bool bothSides  = false,
                               double rotation = 0.0)
 {
     return(Solid.SweepFace(perimeter, holes, Vector3.ZAxis, distance, bothSides, rotation));
 }
示例#2
0
 /// <summary>
 /// Construct a solid by sweeping a face.
 /// </summary>
 /// <param name="outerLoop">The perimeter of the face to sweep.</param>
 /// <param name="innerLoops">The holes of the face to sweep.</param>
 /// <param name="distance">The distance to sweep.</param>
 /// <param name="material">The solid's material.</param>
 /// <param name="bothSides">Should the sweep start offset by direction distance/2? </param>
 /// <returns>A solid.</returns>
 public static Solid SweepFace(Polygon outerLoop, Polygon[] innerLoops, double distance, Material material = null, bool bothSides = false)
 {
     return(Solid.SweepFace(outerLoop, innerLoops, Vector3.ZAxis, distance, material, bothSides));
 }
示例#3
0
 /// <summary>
 /// Construct a solid by sweeping a face.
 /// </summary>
 /// <param name="perimeter">The perimeter of the face to sweep.</param>
 /// <param name="holes">The holes of the face to sweep.</param>
 /// <param name="distance">The distance to sweep.</param>
 /// <param name="bothSides">Should the sweep start offset by direction distance/2? </param>
 /// <returns>A solid.</returns>
 public static Solid SweepFace(Polygon perimeter, Polygon[] holes, double distance, bool bothSides = false)
 {
     return(Solid.SweepFace(perimeter, holes, Vector3.ZAxis, distance, bothSides));
 }