5 posts / 0 new
Last post
ForumImport
Offline
Last seen: 9 years 9 months ago
Joined: 09/22/2009 - 18:47
CSG tree with more than 2 objects

This message was originally posted by nad_sf_fm on 08/28/2007 04:23:38
Hi, folks,
I try to build up a CSG tree like the one shown at:
\"http://www.ipf.tuwien.ac.at/fr/buildings/diss/node38.html\".
I am very impressed by the output of a RenderManCSGOperator working on two instances.
But, how can i expand the csg operations into a tree structure?
I thought of something like this:
Somehow, i have to declare the first RenderManCSGOperator to be an input-instance(e.g. instance1) of the
new top-level RenderManCSGOperator2.
In addition, the rendering of the first RenderManCSGOperator has to be suppressed to see for example
a \"difference\" operation.
This approach wasn´t successful nor other CSGoperator-CSGsolid-combinations.
thanx in advance
dan

ForumImport
Offline
Last seen: 9 years 9 months ago
Joined: 09/22/2009 - 18:47
CSG tree with more than 2 objects

This message was originally posted by Timothy M. Shead on 08/28/2007 23:27:09
Dan:
You may be the first person in history to use this particular functionality ;) What you’re trying to do is correct - you can use RenderManCSGOperator1 as an input to RenderManCSGOperator2, building-up the requisite hierarchy. As you correctly point-out, there’s no way to hide the output of the intermediate operators in the tree, which is functionality I overlooked. I also just realized that RenderManCSGSolid is of little use, since it only accepts a single child - it is impossible with the current setup to create a \"solid\" cylinder using a combination of cylinder and disk primitives, for example.
I will look into correcting these problems in K-3D 0.7.
Thanks for the question,
Tim

ForumImport
Offline
Last seen: 9 years 9 months ago
Joined: 09/22/2009 - 18:47
CSG tree with more than 2 objects

This message was originally posted by nad_sf_fm on 08/29/2007 02:33:20
Hello,
there is a workaround for the special case where you can achieve the desired shape
by only one csg operation.
For me, the problem of subtracting several \"negativ\" meshes from a \"positiv\" mesh was
solved this way:
In place of a RenderManCSGOperator-hierachy, you can build up a MergeMesh-tree of all
the subtracting \"negativ\" meshes (here even nurbs and polys can be mixed) and then
do the difference operation on top of that.
Congratulations. k-3d is wonderful.
Dan

ForumImport
Offline
Last seen: 9 years 9 months ago
Joined: 09/22/2009 - 18:47
CSG tree with more than 2 objects

This message was originally posted by joa on 08/29/2007 20:23:41
Hi Hans-Dieter Dreier!
Sorry for the delay. I’m not an expert on the subject but seems you are having problems with library symbols :D. There has been a thread in the mailing list about symbols on windows caused by the adaptation of k3d to VStudio. (is quite a long thread)
https://sourceforge.net/mailarchive/forum.php?thread_name=1fcd9b12070518...
You could try to compile 0.7 on win32 either with VS (i guess with 2005) or gcc.
Hope this could be your solution.
Cheers,
Joaquín

ForumImport
Offline
Last seen: 9 years 9 months ago
Joined: 09/22/2009 - 18:47
CSG tree with more than 2 objects

This message was originally posted by Timothy M. Shead on 08/29/2007 23:13:10
Dan:
Really appreciate the followup post - I still plan to improve things for 0.7, but it’s good to have a workaround in the meantime.
Many thanks!
Tim

Log in or register to post comments