[cgma-dev] (no subject)
Jane Hu
janejhu at gmail.com
Mon Sep 30 12:36:47 CDT 2013
Huayi,
In case you are wondering about how to model facets of triangles into a
geometry surface in cgm, here's the hint:
Under cgm/geom/facet, the call FacetModifyEngine::build_cholla_surfaces()
should give you a pointer to ChollaEngine.
>From ChollaEngine you can get ChollaSurface pointer:
ChollaEngine::get_surfaces( DLIList<ChollaSurface *> & cholla_surface_list )
For your case, there should be only one ChollaSurface generated. Get its
EvalTool by get_eval_tool().
Then use the EvalTool to call project_to_facets(CubitVector &this_point,
CubitBoolean trim,
CubitBoolean *outside,
CubitVector *closest_point_ptr,
CubitVector *normal_ptr);
You should get all related info from this call then.
Hope it helps.
Jane
On Sun, Sep 29, 2013 at 9:59 PM, 魏华祎 <huayiwei1984 at gmail.com> wrote:
> Hi, There,
>
> 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.
>
> Best
>
> Huayi
>
>
>
>
--
Jane Hu
Asst. Researcher
Dept. of Engineering Physics
UW @ Madison
"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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20130930/104a699a/attachment.html>
More information about the cgma-dev
mailing list