[cgma-dev] subtract with OCC

Jiangtao Hu jiangtao_ma at yahoo.com
Tue Nov 11 09:49:35 CST 2008


Hi, Leidy

Thank you for using OCC and providing feed backs, here's the answer for your question:

When keep_old is set to be false, the from_body gets modified by subtracting the tool_body from it, since it's still there, the from_body is not deleted and it points to the same object as the new_body.

When keep_old is set to be true, the from_body gets copied and the copied body gets modified, hence the new_body and from_body will point to different object.

By default, this argument is set to false, which will modify the existing from_body and delete the tool_body.

You may look at modify.cpp file to check for it.

Does it answer your question?

Jane


--- On Mon, 11/10/08, Leidy Suarez <ly.suarez at ingeciber.com> wrote:
From: Leidy Suarez <ly.suarez at ingeciber.com>
Subject: [cgma-dev] subtract  with OCC
To: 
Cc: cgma-dev at mcs.anl.gov
Date: Monday, November 10, 2008, 1:07 PM

We have a question about the method:
"subtract(DLIList<BodySM*> &tool_body_list,
          DLIList<BodySM*> &from_bodies,
          DLIList<BodySM*> &new_bodies,
          bool imprint,
          bool keep_old) const"
in OCCModifyEngine.

When we make the boolean operation of subtract with the bool parameter
"keep_old" setting to "false", why the bodies:
"from_bodies" continue to exist?. Why did only the bodies:
"tool_body_list" are eliminated?

Thanks,
Leidy





      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mcs.anl.gov/mailman/private/cgma-dev/attachments/20081111/0b1a1c76/attachment.htm>


More information about the cgma-dev mailing list