leocad icon indicating copy to clipboard operation
leocad copied to clipboard

Export to "LaTeX/TikZ" (instruction with vector graphics)

Open Symbian9 opened this issue 7 years ago • 9 comments

Export instruction in LaTeX-document with vector graphics using next template (or similar)

  • https://github.com/cryingshadow/lego

Symbian9 avatar Aug 01 '17 01:08 Symbian9

Seriously?

j6t avatar Apr 17 '21 15:04 j6t

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.

rsbx avatar Apr 17 '21 16:04 rsbx

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.

j6t avatar Apr 17 '21 16:04 j6t

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.

rsbx avatar Apr 17 '21 17:04 rsbx

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

ghost avatar Apr 17 '21 19:04 ghost

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.

j6t avatar Apr 17 '21 21:04 j6t

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.

ghost avatar Apr 17 '21 21:04 ghost

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.)

j6t avatar Apr 17 '21 22:04 j6t

The mode that would have to be used for vector graphics output does not exist in LeoCAD

I'm not agree with such claiming.

ghost avatar Apr 17 '21 23:04 ghost

No plans for LaTex

leozide avatar Mar 19 '23 00:03 leozide