Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!odi!jack From: jack@odi.com (Jack Orenstein) Newsgroups: comp.lang.c++ Subject: Re: puzzle/problem/yet another new feature Message-ID: <1989Oct27.133409.26475@odi.com> Date: 27 Oct 89 13:34:09 GMT References: <32164@ucbvax.BERKELEY.EDU> <1989Oct26.135247.20151@odi.com> <893@mit-amt.MEDIA.MIT.EDU> Reply-To: jack@odi.com (Jack Orenstein) Organization: Object Design Inc., Burlington, MA Lines: 18 In article <893@mit-amt.MEDIA.MIT.EDU> peter@media-lab.media.mit.edu (Peter Schroeder) writes: >>operator*, etc. to construct a tree representing the expression. Then, >>when the value of the expression is needed, e.g. in assignment to >>ANSWER above, or in a comparison, optimize and evaluate. >Does anybody have PD code that does this? I'd love to see some of it as a >learning aid. (Plus, it seems to hairy to reinvent if somebody already did >it...) I'll bet that someone working with CSG (constructive solid geometry) representations in C++ has done this. Instead of addition and multiplication, there is union and intersection of 3d primitives, (there are other operations as well). Since you're at MIT, try someone involved with mechanical CAD or solid modelling. Jack Orenstein Object Design, Inc.