Exemple #1
0
 internal static HandleRef getCPtr(PolygonObject obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Exemple #2
0
 public SWIGTYPE_p_Real CalcSurfaceDistancesFromPoint(PolygonObject pObject, int pindex, Neighbor pNeighbor, ref Fusee.Math.Core.Vector3D /* Vector*&_cstype */ pNormals) {
   IntPtr cPtr = C4dApiPINVOKE.BrushBase_CalcSurfaceDistancesFromPoint__SWIG_2(swigCPtr, PolygonObject.getCPtr(pObject), pindex, Neighbor.getCPtr(pNeighbor), ref pNormals /* Vector*&_csin */);
   SWIGTYPE_p_Real ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_Real(cPtr, false);
   return ret;
 }
Exemple #3
0
 public SWIGTYPE_p_Real CalcSurfaceDistancesFromPoint(PolygonObject pObject, int pindex) {
   IntPtr cPtr = C4dApiPINVOKE.BrushBase_CalcSurfaceDistancesFromPoint__SWIG_4(swigCPtr, PolygonObject.getCPtr(pObject), pindex);
   SWIGTYPE_p_Real ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_Real(cPtr, false);
   return ret;
 }
Exemple #4
0
 public SWIGTYPE_p_Real CalcSurfaceDistances(PolygonObject pObject, BaseSelect selected) {
   IntPtr cPtr = C4dApiPINVOKE.BrushBase_CalcSurfaceDistances__SWIG_4(swigCPtr, PolygonObject.getCPtr(pObject), BaseSelect.getCPtr(selected));
   SWIGTYPE_p_Real ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_Real(cPtr, false);
   return ret;
 }
Exemple #5
0
 public SWIGTYPE_p_Real CalcSurfaceDistances(PolygonObject pObject, BaseSelect selected, Neighbor pNeighbor, ref Fusee.Math.Core.Vector3D /* Vector*&_cstype */ pNormals, ref Fusee.Math.Core.Vector3D /* Vector*&_cstype */ pGlobalPoints) {
   IntPtr cPtr = C4dApiPINVOKE.BrushBase_CalcSurfaceDistances__SWIG_1(swigCPtr, PolygonObject.getCPtr(pObject), BaseSelect.getCPtr(selected), Neighbor.getCPtr(pNeighbor), ref pNormals /* Vector*&_csin */, ref pGlobalPoints /* Vector*&_csin */);
   SWIGTYPE_p_Real ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_Real(cPtr, false);
   return ret;
 }
Exemple #6
0
 public bool GetNGons(PolygonObject op, SWIGTYPE_p_LONG ngoncnt, SWIGTYPE_p_p_NgonNeighbor ngons) {
   bool ret = C4dApiPINVOKE.Neighbor_GetNGons(swigCPtr, PolygonObject.getCPtr(op), SWIGTYPE_p_LONG.getCPtr(ngoncnt), SWIGTYPE_p_p_NgonNeighbor.getCPtr(ngons));
   if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Exemple #7
0
 public static bool CalculateVisiblePoints(BaseDraw bd, PolygonObject op, ref Fusee.Math.Core.Vector3D /* Vector*&_cstype */ padr, SWIGTYPE_p_UCHAR pset, bool select_visibonly) {
   bool ret = C4dApiPINVOKE.CalculateVisiblePoints(BaseDraw.getCPtr(bd), PolygonObject.getCPtr(op), ref padr /* Vector*&_csin */, SWIGTYPE_p_UCHAR.getCPtr(pset), select_visibonly);
   return ret;
 }
Exemple #8
0
  public static int IntersectionTest(PolygonObject op, BaseDraw bd, double x, double y, ref Fusee.Math.Core.Matrix4D /* constMatrix&_cstype */ mg, SWIGTYPE_p_Real z, MODELINGCOMMANDMODE mode, SWIGTYPE_p_UCHAR pPointSelect, int lSelectCount) {
    double[] adbl_mg;
    unsafe {adbl_mg = Fusee.Math.ArrayConversion.Convert.Matrix4DToArrayDoubleC4DLayout(mg);    fixed (double *pdbl_mg = adbl_mg) {
    /* constMatrix&_csin_pre */
    try {
      int ret = C4dApiPINVOKE.IntersectionTest(PolygonObject.getCPtr(op), BaseDraw.getCPtr(bd), x, y, (IntPtr) pdbl_mg /* constMatrix&_csin */, SWIGTYPE_p_Real.getCPtr(z), (int)mode, SWIGTYPE_p_UCHAR.getCPtr(pPointSelect), lSelectCount);
      return ret;
    } finally {
        // NOP mg = Fusee.Math.ArrayConversion.Convert.ArrayDoubleC4DLayoutToMatrix4D(pdbl_mg);
        /* constMatrix&_csin_post */
    }
} } /* constMatrix&_csin_terminator */
  }