BuildingCoder.CmdExportSolidToSat.Clone C# (CSharp) Method

Clone() public static method

public static Clone ( Solid solid ) : Solid
solid Solid
return Solid
        public static Solid Clone( /*this*/ Solid solid )
        {
            if( solid == null )
              {
            return null;
              }

              // Better than unioning the solid with itself:
              // use a small cube contained within the original
              // solid instead, e.g. a 1x1x1 cube at the origin
              // or something.

              return BooleanOperationsUtils
            .ExecuteBooleanOperation( solid, solid,
              BooleanOperationsType.Union );
        }
CmdExportSolidToSat