leocad
leocad copied to clipboard
Export to "LaTeX/TikZ" (instruction with vector graphics)
Export instruction in LaTeX-document with vector graphics using next template (or similar)
- https://github.com/cryingshadow/lego
Seriously?
I understand the desire: the vector graphics would be resolution independent and look better on high resolution imaging devices.
The downside is that the PS file would often be larger than an image file. There's also the needing to do in software what OpenGL does in hardware (usually) to handle occlusion.
On 4/17/21 11:59 AM, Johannes Sixt wrote:
Seriously?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/leozide/leocad/issues/93#issuecomment-821845098, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAECJNGARTPAYQLWQMWDEETTJGV6VANCNFSM4DVEN7UA.
But LaTeX?? That's not even designed for vector graphics. Wouldn't PostScript be a better choice? The linked project looks like a stub with no activity anyway.
But think about it: How would you generate a vector graphics without a renderer? You would have to do all the occlusion computations, everything that OpenGL is doing for us.
Naah, not a workable idea.
Let's dimiss this issue.
I agree that this is not something that LeoCAD should include since the rather limited real usefulness doesn't balance the amount of work it would take. But modern LaTeX handles PS graphics quite well and it's text formatting is superb.
When I looked into this a while back, I found a project that would use OGL transform feedback to get the surfaces and run them through some binary space partitioning code and sort the result so that the painter algorithm could be used. But it didn't seem useful enough to follow up on since the files would be huge and render very slowly.
On 4/17/21 12:43 PM, Johannes Sixt wrote:
But /LaTeX/?? That's not even designed for vector graphics. Wouldn't PostScript be a better choice? The linked project looks like a stub with no activity anyway.
But think about it: How would you generate a vector graphics without a renderer? You would have to do all the occlusion computations, everything that OpenGL is doing for us.
Naah, not a workable idea.
Let's dimiss this issue.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/leozide/leocad/issues/93#issuecomment-821851643, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAECJNHEGG5ICDYIE5EG343TJG3E3ANCNFSM4DVEN7UA.
But LaTeX?? That's not even designed for vector graphics. Wouldn't PostScript be a better choice?
Guess, MetaPost is the best choice.
- https://en.wikipedia.org/wiki/MetaPost
- https://github.com/jemmybutton/fiziko
- https://github.com/jemmybutton/byrne-euclid
Guess, MetaPost is the best choice.
Vector graphics is simply not a workable export choice, regardless of which fancy file format you choose. If it doesn't do the 3D rendering, it is infeasible.
Vector graphics is simply not a workable export choice, regardless of which fancy file format you choose. If it doesn't do the 3D rendering, it is infeasible.
Flat render mode in LeoCAD is exactly what should be used for vector graphics output.
Flat render mode in LeoCAD is exactly what should be used for vector graphics output.
The mode that would have to be used for vector graphics output does not exist in LeoCAD. (The mode of illumination does not make the slightest difference.)
The mode that would have to be used for vector graphics output does not exist in LeoCAD
I'm not agree with such claiming.
No plans for LaTex