Hi Peer,
re:
> Specifically, the combination of .calculate() and .addObjects ( object ) results in 2 objects existing: a solid that
> looks like the original solid and a solid less one face.
Basically objects in the geometry database are immutable, to modify an object a geometry factory will create a new object and the old object will need to be removed from the geometry database.
This cycle of generating a new object and removing the old object is handled automatically by the factory.update() and factory.commit() mechanisms that regular commands use.
It can be useful for a script to handle it manually though, which is done by using factory.calculate() instead of factory.update()/commit() - unlike update/commit the calculate() function will generate an output object but not automatically add it to the geometry database or remove any input objects from the geometry database.
> I can do what I want with the new object facelessParent, but I have to do another deletion to get rid of the solid that remains in the scene.
You'll need to remove the old object from the geometry database if you don't want it to be around anymore. But note that you'll need to remove the top level parent object not face sub-objects. Faces don't exist on their own, they are a subordinate part of a brep.
- Michael
|