[ODE] dCylinder problems and future

Jon Watte hplus-ode at mindcontrol.org
Wed Jan 28 10:02:16 MST 2004

I beleive CCylinder is useful, and often what you want. It also performs better than most other primitives. Losing it as a primitive would be a mistake.

Instead, if anyone has time on their hands, improving ccylinder/trimesh would be useful :-)


			/ h+

-----Original Message-----
From: ode-bounces at q12.org [mailto:ode-bounces at q12.org]On Behalf Of Adam
D. Moss
Sent: Wednesday, January 28, 2004 3:40 AM
To: ode at q12.org
Subject: Re: [ODE] dCylinder problems and future

John Miles wrote:
> I don't see any reason not to go ahead and add dcylinder.cpp to the main
> library, as long as its limitations are mentioned prominently in the docs.

I'm not saying that this will or won't happen, but I wanted to
point out that adding a geom to core ODE isn't something that
should be done lightly.  Every geom that gets added means
increasingly more work to add any other future geoms, since
all core ODE geoms should know how to collide with all other
core ODE geoms and all of those collision cases have to be

A dCylinder geom (though not necessarily this implementation
in its current state) is IMO quite a good candidate for
the core because it's useful in itself and can only very
roughly be approximated by the other primitives -- if it went in,
the CCylinder as a low-level collision geom could in theory be
retired and perhaps replaced by a fake (though the CCylinder is
somewhat more optimal than a cylinder-and-two-spheres, if a
CCylinder is really what you need), then future geoms would only
need to know how to collide with a sphere and a cylinder...

Maybe in the future some space-cadet will submit code to allow
geoms to be constructed and collided via a CSG hierarchy, so for
example a cylinder trivially becomes a CCylinder bounded by two
planes. :)

Adam D. Moss   . ,,^^   adam at gimp.org   http://www.foxbox.org/   co:3
"At this point the rocket becomes engorged with astronauts."
ODE mailing list
ODE at q12.org

More information about the ODE mailing list