Quote:- It would have been nice to specify a detail level for getPoints(). The default level is good, but I like to have an option of having a lores version for faster previews. Right now getPoints() seems to use the size of the RShape to determine number of points, which is fine for default use but not very flexible.
This is already possible using the RG.setPolygonizerXXX() methods. Check the Tutorial 07 that is in the tutorials directory in the library folder.
In any case for faster preview and if you don't need equally spaced vertices I would use:
Code:RG.setPolygonizer(RG.ADAPTATIVE);
RG.setPolygonizerAngle(angle);
where
setPolygonizerAngle() is used to set the angle tolerance of consecutive segments when evaluating the vertices.
I know this is not the best name for the methods, but setSegmenterXXX() which was used before was not better. Recommendations for better names are very welcome.
Quote:- Being able to get the intersection point(s) between a RShape and a line would have been nice.
- Ditto the minimum distance between a given point and a RShape. The source for java.awt.Line2D has code for this.
These would definitely be nice to have. I have also needed this in the past and ended up doing it manually, I'll see if I can add these to Geomerative in the coming days.
Quote:- Maybe have a way of getting a flipped RMesh from a RShape in order to get a mesh usable as a back face for 3D letters It's easily done with transforms, I know.
Hm... I actually haven't used the library for a lot for 3D stuff. Only in
Cascade On Wheels of Steph Thirion and in
Casas Tristes. In both cases I did 3D extrusion of shapes but I didn't need to flip the back faces, I guess because in both cases there was no needed to see the back side.
I will do a little test and see what method could be helpful for this task.