Multiple Geometries

Howdy it’s me again

i just implemented multi geometry handling in shape3d
it wasn’t much … but i needed it so i did it … it works and i included a new Test program ( called Xith3dMultipleGeometryTest )

if anyone could approve it and merge it to the main tree?

[ attachement: http://www.fhaust.de/downloads/patch.txt.rar ]

Thanks for the patch!

Can you describe the feature (I can guess, but I like hearing a description from the horses mouth so to speak)?

Can you submit an Issue via https://xith3d.dev.java.net/ and attach the file? That way it’s added to my list and I will try to do it as soon as I can. No need to rar it, just submit the file please :slight_smile:

Cheers,

Will.

i’d like to … but at the moment i’m on a 56k modem … and from monday i won’t even have internet for 2 or 3 weeks …
the unzipped file is too large to upload it via 56k … so if anyone could upload it for me?

to describe the feature:
with this patch it is possible to use several geometries with a single shape3d
geometries are stored in a vector so it is possible to use up to unlimited geometries :wink:

the methodes setGeometry( Geometry g ) and getGeometry() should work like before
the set method deletes all geometries and makes the given geometry the only one
the get method returns the first ( index 0 ) geometry

the new methods setGeometry( int index, Geometry g ) and and getGeometry( int index ) make use of the new feature
the set method works the same way like the set method in java.util.Vector ( as it is the underlying datastructure )
the get method also works the same
both methods will throw an error if an index that doesn’t exist is accessed

to add new geometries the method addGeometry( Geometry g ) should be used … maybe there should be a method like setMaximalGeometries to allow setGeometry ( int index ) to access more than the existing indices

so … should be enough … and i’ll be ‘away from pc’ for about 2 or 3 weeks … :frowning: cu then