[ 
https://issues.apache.org/jira/browse/GEOMETRY-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17116693#comment-17116693
 ] 

Matt Juntunen commented on GEOMETRY-95:
---------------------------------------

bq. That would be a necessary feature in many cases.
For example, I seem to recall that you mentioned the like of facet objects that 
would also carry additional (user-provided) information. If this information is 
"color", it is needed in order to draw scene as would be seen from the 
specified viewpoint.

Information such as per-facet attributes is lost when facets are inserted into 
a BSP tree since the facets are manipulated (split and/or expanded) during 
insertion. If the end goal is to render a 3D scene, this is not the approach I 
would take. I would instead use the linecasting functionality to create a 
ray-tracing implementation. This would not involve projection onto a 2D plane.

So, this leads me back to the original question: is there a specific use case 
you'd like to show in the examples? Two use cases that I can picture as useful 
are :
1. Load a 3D model from a file, perform some transformations and/or boolean 
operations on it and then write it back out as a file. This would be very 
useful to see since, as far as I am aware, this is the only Java library that 
can perform these CSG-type boolean operations on arbitrary regions. (This is 
the original use case that led me to start working on the geometry code in 
commons-math.)
2. Demonstrate the linecasting functionality by creating a simple ray-tracer 
capable of rendering images of simple 3D scenes (containing geometric shapes 
only; no textures, etc). This would be little more than a fun toy 
implementation since there are much better libraries and techniques for 
software rendering, but it would still be instructive and might produce some 
cool-looking images we could use in the site.

WDYT?

> CSG Examples
> ------------
>
>                 Key: GEOMETRY-95
>                 URL: https://issues.apache.org/jira/browse/GEOMETRY-95
>             Project: Apache Commons Geometry
>          Issue Type: New Feature
>            Reporter: Matt Juntunen
>            Priority: Major
>              Labels: beta1
>
> Adding Constructive Solid Geometry examples and userguide entries to help new 
> users to the library use these features.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to