<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body 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>
<br>
<div class="moz-cite-prefix">On 07/23/2015 02:34 PM, Andrew Davis
wrote:<br>
</div>
<blockquote
cite="mid:CAGNcaP_qtXvpZLzatrBGYSy=KVo1KGkg41_aQ-AS3ppOu=Gb0Q@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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 class="" style="white-space:pre"> </span>
/*in*/ iBase_EntityHandle *input_curves,</div>
<div><span class="" style="white-space:pre"> </span>
/*in*/ int num_curves,</div>
<div><span class="" style="white-space:pre"> </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 class="" style="white-space:pre"> </span>
curves,</div>
<div><span class="" style="white-space:pre"> </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>
</body>
</html>