Shrink trimmed srf reloaded
All  1-13  14-17

Previous
Next
 From:  Michael Gibson
7983.14 In reply to 7983.13 
Hi Marco, yup once you call .commit() the factory is all done and all its internal lists of objects are cleared out, basically it's not expecting anything more to be done with it after .commit() . So because of that you need to call .getCreatedObjects() before .commit() but also after .update() has been called to make the output be generated.

I could probably change some of this in v4 to make it a bit more friendly, like if you call .getCreatedObjects() and .update() has never been called, I could probably do the update for you and maybe it would be good for the factory to retain its lists of objects even after .commit() so you could retrieve them after the commit instead of only before.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
7983.15 In reply to 7983.14 
Hi Michael,

Thank you very much for these clarifications!

> I could probably change some of this in v4 to make it a bit more friendly

I'm confident that your v4 Api will be more friendly and powerful, and i hope that will supply some Object Model
to access and operate on the objects' topology (control points, etc...).

Please let me ask one more question...

I'm trying to write a node for NodeEditor, that should be a modified version of "planarsrf" command,
that should return in output only the "caps" surfaces eventually generated ?

Can i apply the same logic that you have explained for the ShrinkTrimmedSrf command ?

That is, call .update() and than .getCreatedObjects() before .commit() ?
Or i must call .calculate(), than .getCreatedObjects(), and than . cancel() ?

Or it's a totally different thing ?

Thank you very much and have a nice day,

Marco (mkdm).
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
7983.16 In reply to 7983.15 
Hi Marco, well there are 2 different ways PlanarSrf can be used. If you have curves selected it will build just a planar surface through those curves, if you only want the surface itself you would probably want to use it this way. The other way it can be used is if you select an entire joined surface object with holes in it - when you run it this way it will build the planar surfaces through naked edges that form closed planar loops and also join them with the main object. When run this second way the output object is not going to be just the planar surface, it's the whole entire joined object.

So if you want only the planar surfaces it would probably be good to give PlanarSrf curves for its input objects and then you should be able to do the .update() .getCreatedObjects() .commit() sequence.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  mkdm
7983.17 In reply to 7983.16 
Hi Micheal,

Thank you for these explanations.

I am going to try and put these explanations into practice.

Nice day,

Marco (mkdm).
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-13  14-17