public static void GeometryInputCreate(
     GeometryInputRef geometryInputRef)
 {
     ThrowOut(
         SUGeometryInputCreate(
             out geometryInputRef.intPtr),
         "Could not create geometry input.");
 }
 public static void GeometryInputRelease(
     GeometryInputRef geometryRef)
 {
     ThrowOut(
         SUGeometryInputRelease(
             ref geometryRef.intPtr),
         "Could not release geometry.");
 }
示例#3
0
 public static void GeometryInputAddVertex(
     GeometryInputRef geometryInputRef,
     Point3D vertex)
 {
     ThrowOut(
         SUGeometryInputAddVertex(
             geometryInputRef.intPtr,
             ref vertex),
         "Could not add vertex.");
 }
 public static void GeometryInputFaceAddInnerLoop(
     GeometryInputRef geometryInputRef,
     long faceIndex,
     LoopInputRef loopInputRef)
 {
     ThrowOut(
         SUGeometryInputFaceAddInnerLoop(
             geometryInputRef.intPtr,
             faceIndex,
             ref loopInputRef.intPtr),
         "Could not add inner loop.");
 }
 public static void GeometryInputAddFace(
     GeometryInputRef geometryInputRef,
     LoopInputRef loopInputRef,
     out long index)
 {
     ThrowOut(
         SUGeometryInputAddFace(
             geometryInputRef.intPtr,
             ref loopInputRef.intPtr,
             out index),
         "Could not add face.");
 }
 public static void EntitiesFill(
     EntitiesRef entitiesRef,
     GeometryInputRef geometryInputRef,
     bool weld)
 {
     ThrowOut(
         SUEntitiesFill(
             entitiesRef.intPtr,
             geometryInputRef.intPtr,
             weld),
         "Could not fill entities.");
 }
        public static void GeometryInputFaceSetFrontMaterial(
            GeometryInputRef geometryRef,
            long faceIndex,
            MaterialInput materialInput)
        {
            MaterialInputStruct mis = materialInput.materialInputStruct();

            ThrowOut(
                SUGeometryInputFaceSetFrontMaterial(
                    geometryRef.intPtr,
                    faceIndex,
                    ref mis),
                "Could not set front material.");
        }