Hi!
You've definitely spotted two bugs there.
On Fri, Feb 11, 2005 at 11:38:07PM +0100, Björn Harmen Gerth wrote:
> Hello.
>
> ********** 1) *****************
> from OSGExtrusionGeometry.cpp, in makeExtrusionGeo:
> if(beginCap)
> {
> FDEBUG(("generating and rendering caps\n"));
>
> renderCap(...);
> renderCap(...);
> }
>
> I think this should be
> if(beginCap)
> {
> FDEBUG(("generating and rendering top cap\n"));
> renderCap(...);
> }
> if (endCap)
> {
> FDEBUG(("generating and rendering bottom cap\n"));
> renderCap(...);
> }
> The parameter list of the function has to be altered
> accordingly.
>
Yes. It should definitely be possible to switch the caps on and off
separately. Thus it's a bug.
> ******** 2) *****************
> Same file, in function calcHullVertices:
>
> Quaternion tmp = orientation[sp_len - 1];
>
> should be
>
> Quaternion tmp = orientation[or_len - 1];
The intention is to reuse the last known good orientation once
the count of spine points exceeds the number of specified spine
orientations. As we are given or_len spine orientations,
the last known good value resides at or_len-1, as you proposed.
> ********* 3) ***************
>
> Has anyone ever used makeExtrusion(Geo) without a VRML
> file?
I did use this code to render some simple extrusion examples
when I wrote the code, but I haven't touched it in years.
(and probably noone else bothered to do so either).
It displayed most of my simple test examples correctly, but
has known problems with various VRML example files :(
In short, the OSG extrusion geometry code does need some work.
I might be able to finally fix it at the end of the month, but I can't
promise anything yet ...
What are you trying to use the extrusion geometry for?
Bye,
Andreas Fischle
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users