GithubHelp home page GithubHelp logo

Comments (8)

deadsy avatar deadsy commented on May 15, 2024 1

So sdfx uses the yofu/dxf package. The flow is something like 2d sdf -> 2d polygon -> dxf output file.
When you go to output the dxf file you can decorate the 2d polygon output it with the boilerplate frame using the dxf primitives.
dxf has a text entity which I assume would be the simplest way of getting some strings of text into the details box.

from sdfx.

deadsy avatar deadsy commented on May 15, 2024 1

Does anyone know of an existing implementation of the openscad projection() function for sdfx?

func Slice2D(sdf SDF3, a V3, n V3) SDF2
Slice2D returns an SDF2 created from a planar slice through an SDF3.

from sdfx.

deadsy avatar deadsy commented on May 15, 2024

To be sure sdfx has been written as a modelling library for 2d /3d signed distance fields- it's not really a blueprint producing 2d cad program. Having said that....

Since you seem to be in the realm of DXF files, I'd probaby aim for some code that given name, page, number, date, designer, etc. produced a frame of the correct size and slapped the 2d polygon from marching squares in the middle of it. ie- a version of RenderDXF with more control parameters.

from sdfx.

stevegt avatar stevegt commented on May 15, 2024

Yeah, I also don't need traditional engineering drawings myself -- I prefer tool chains that go from model all the way to material without the human intervention that a drawing implies. But I'm being driven to generate drawings by more traditional folks I need to interact with. It's been a persistent demand for years, one that I'd always assumed I'd eventually get around to via either openscad or python scripting of freecad -- paradoxically enough, I think sdfx is better suited. I'm not even wedded to DXF -- SVG would allow rendering in browser, etc.

I think we're thinking the same thing about rendering code path for the frame and title block. Just need to suss out the right way to handle lettering. Still experimenting.

from sdfx.

stevegt avatar stevegt commented on May 15, 2024

Adding this to my "todo" checklist above: Does anyone know of an existing implementation of the openscad projection() function for sdfx? I spent some time this weekend looking around in the code, closest I've found so far is the Cut3D() stuff.

from sdfx.

stevegt avatar stevegt commented on May 15, 2024

Encouraging that yofu/dxf includes a DXF parser -- that would allow reading the boilerplate from a template file.

from sdfx.

gedw99 avatar gedw99 commented on May 15, 2024

Hey all

I also have the same need

did this move forward in anyone’s repo.

I think I could build a gui for doing this actually in golang

  1. 3d model viewer
  2. 2d projection . Will be off the DXF in a flow that watches if a 3d model changes
  3. PDF output of sheets from the DXF viewer

This is all read only. But it should be possible to extend it to editing also I think but it would need to be talking to the 3d model golang api

from sdfx.

deadsy avatar deadsy commented on May 15, 2024

I don't know that anybody has done it. My suggestion was that it could be a parameter passed to the DXF render. ie - page size, title, date, version, etc. - and then just add them to the dxf output using the dxf primitives.

from sdfx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.