<div dir="ltr">Huayi,<div><br></div><div>In case you are wondering about how to model facets of triangles into a geometry surface in cgm, here's the hint:</div><div><br></div><div>Under cgm/geom/facet, the call FacetModifyEngine::build_cholla_surfaces() should give you a pointer to ChollaEngine.</div>
<div><br></div><div>From ChollaEngine you can get ChollaSurface pointer: ChollaEngine::get_surfaces( DLIList<ChollaSurface *> & cholla_surface_list )</div><div><br></div><div>For your case, there should be only one ChollaSurface generated. Get its EvalTool by get_eval_tool().</div>
<div><br></div><div>Then use the EvalTool to call project_to_facets(CubitVector &this_point,</div><div> CubitBoolean trim,</div><div> CubitBoolean *outside,</div>
<div> CubitVector *closest_point_ptr,</div><div> CubitVector *normal_ptr);</div><div><br></div><div>You should get all related info from this call then.</div><div>
<br></div><div>Hope it helps.</div><div><br></div><div>Jane</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Sep 29, 2013 at 9:59 PM, 魏华祎 <span dir="ltr"><<a href="mailto:huayiwei1984@gmail.com" target="_blank">huayiwei1984@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, There, <div><br></div><div> I have a polyhedral surface whose all of facets are triangles. Can cgma do such things: given a point near this surface, then project the point to this surface? I am a newbie of cgma. I need your help, thanks very much.</div>
<div><br></div><div>Best</div><div><br></div><div>Huayi</div><div class="gmail_extra"><br><br><div class="gmail_quote"><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Jane Hu<br>
<br>
Asst. Researcher<br>
Dept. of Engineering Physics<br>
UW @ Madison<br>
<br>
"And we know that for those who love God, that is, for those who are
called according to his purpose, all things are working together for
good." (Romans 8:28)
</div>