<div dir="ltr">Hi Patrick<div><br></div><div>Irrespective of whether or not I use planar, best fit, sphere, its the same error message over and over again.</div><div><br></div><div>Thanks</div><div><br></div><div>Andy</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 25, 2015 at 8:00 AM, Patrick Shriwise <span dir="ltr"><<a href="mailto:shriwise@wisc.edu" target="_blank">shriwise@wisc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hey Andy, <br>
    <br>
    The error message seems to indicate it's trying to make a surface
    which isn't planar.. maybe thats a good starting point? Are there
    other flags to hand that function by chance?<br>
    <br>
    Cheers, <br>
    <br>
    Patrick <br><div><div class="h5">
    <br>
    <div>On 07/23/2015 02:34 PM, Andrew Davis
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Hi Guys
        <div><br>
        </div>
        <div>I have the following function that I've added to my version
          of iGeom,</div>
        <div><br>
        </div>
        <div>
          <div>ITAPS_API void</div>
          <div>iGeom_createSurface2(iGeom_Instance instance,</div>
          <div><span style="white-space:pre-wrap"> </span>  
             /*in*/ iBase_EntityHandle *input_curves,</div>
          <div><span style="white-space:pre-wrap"> </span>  
             /*in*/ int num_curves,</div>
          <div><span style="white-space:pre-wrap"> </span>  
             /*out*/ iBase_EntityHandle *geom_entity,</div>
          <div>                    int* err)</div>
          <div>{</div>
          <div>  CubitVector p1(0, 0, 5);<br>
          </div>
          <div>  RefVertex* v1 = gmt->make_RefVertex(p1);</div>
          <div><br>
          </div>
          <div>  CubitVector p2(0, 0, -5);</div>
          <div>  RefVertex* v2 = gmt->make_RefVertex(p2);</div>
          <div><br>
          </div>
          <div>  CubitVector p3(0, 5, 0);</div>
          <div>  RefVertex* v3 = gmt->make_RefVertex(p3);</div>
          <div><br>
          </div>
          <div>  CubitVector p4(0, -5, 0);</div>
          <div>  RefVertex* v4 = gmt->make_RefVertex(p4);</div>
          <div><br>
          </div>
          <div>  RefEdge* e1 =
            gmt->make_RefEdge(ARC_CURVE_TYPE,v1,v2,&p3);</div>
          <div>  RefEdge* e2 =
            gmt->make_RefEdge(ARC_CURVE_TYPE,v1,v2,&p4);</div>
          <div><br>
          </div>
          <div>  DLIList<RefEdge*> curves;<br>
          </div>
          <div>  curves.insert(e1);</div>
          <div>  curves.insert(e2);</div>
          <div><br>
          </div>
          <div>  RefFace* tmp_surface =
             gmt->make_RefFace(PLANE_SURFACE_TYPE,</div>
          <div><span style="white-space:pre-wrap"> </span>  
             curves,</div>
          <div><span style="white-space:pre-wrap"> </span>  
             false);</div>
          <div>  </div>
          <div>  *geom_entity =
            reinterpret_cast<iBase_EntityHandle>(tmp_surface);  <br>
          </div>
          <div>  RETURN ((tmp_surface ? iBase_SUCCESS : iBase_FAILURE));</div>
          <div>}</div>
          <div><br>
          </div>
          <div>When I run this, I can sucessfully create the vertices,
            and create curves from those verts using make_RefEdge. When
            I try to create a surface from those two ref edges I get the
            following error.</div>
          <div><br>
          </div>
          <div>
            <div>WARNING: In AcisGeometryEngine::make_FACE</div>
            <div>         At this time, cannot make a FACE that isn't
              planar or best fit.</div>
            <div>ERROR: In AcisModifyEngine::make_Surface</div>
            <div>       Cannot make Surface object.</div>
            <div>ERROR: Couldn't make new RefFace.</div>
          </div>
          <div><br>
          </div>
          <div>If I save the file as acis and examine the results in
            Cubit, they appear as they should (minus the surface). I
            can, in Cubit, make surface then, sweep and do all the
            operations that I want to.</div>
          <div><br>
          </div>
          <div>Is there something that I', just misunderstanding about
            CGM / gmt that means I'm using this wrong?</div>
          <div><br>
          </div>
          <div>Thanks</div>
          <div><br>
          </div>
          <div>Andy</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div>