geometry - Sphere and nonuniform object intersection -


i have 2 objects: sphere , object. object created using surface reconstruction - not know equation of object. want know intersecting points on sphere when object , sphere intersect. if had sphere , cylinder, solve equation , figure out area , problem here object not uniform.

is there way find out intersecting points or area on sphere?

i'd start finding intersection of triangles sphere. first find intersection of each triangle's plane , sphere, gives circle. find circle's intersection/s triangle edges in 2d using line/circle tests. result many arcs guess approximate lines. i'm not sure go here without knowing end goal.

if it's surface area you're after, maybe numerical approach better. i'd cover sphere in points , count number inside non-uniform object. find if point inside, maybe trace outwards , count intersections surface (if it's odd, point inside). use stencil buffer if wanted (similar stencil shadows).

if want volume of intersection quick google search gives "carve", mesh based csg library.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -