Live data from Hacker News

Show HN: 3D Vector Graphics

github.com

31–40 of 60 posts

Re: Show HN: 3D Vector Graphics

#35
post #12
post #9

This looks pretty great, I'll play with it. Can you explain this from the Readme? Unfortunately, it's difficult to compute the joint formed at the boundaries of these combined shapes, so sufficient texturing is needed on the original solids for a decent result. What is hard about computing the joint? Why does texturing help? My question is from a perspective of curious ignorance, not arrogance (i.e. me saying "don't…

unless you're dealing with sufficiently large integers computing the intersect between a line and a plane with any robustness is impossible on modern computers with float or double. sometimes when you intersect meshes that have nearly coplanar faces, the intersection might shoot vertices near some infinity because of division inaccuracy.

Would symbolic arithmetic help with that? Of is that just too slow a priori?

Re: Show HN: 3D Vector Graphics

#36
post #7

That's pretty cool. A commandline app that just takes an .OBJ file and renders it to an .SVG would actually be pretty useful (viewport position / orientation would of course need to be options as well).

Even cooler if I could figure out some general way of parameterizing & texturing the surface instead of just rendering the triangles. Any ideas?

if you check out the CGAL library, they have code that solves surface parameterization problems. the least squares conformal mapping is pretty nice for creating uv maps.

http://doc.cgal.org/latest/Surface_mesh_parameterization/gro...

http://doc.cgal.org/latest/Surface_mesh_parameterization/Sur...

Re: Show HN: 3D Vector Graphics

#37
It might be an interesting idea to use similar algorithms to create vector plots in scientific PDF documents, instead of having embedded raster images that don't scale well.

Re: Show HN: 3D Vector Graphics

#39

Question: at the bottom of https://github.com/fogleman/ln/blob/master/ln/matrix.go Did you type that in manually? I wonder if there's a way to do that in Go that doesn't have as much duplication, but has the same performance?

In emacs, `keyboard macro counters` are the appropriate tech for that job.
Post reply on HN