Comments (8)
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.
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.
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.
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.
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.
Encouraging that yofu/dxf includes a DXF parser -- that would allow reading the boilerplate from a template file.
from sdfx.
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
- 3d model viewer
- 2d projection . Will be off the DXF in a flow that watches if a 3d model changes
- 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.
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)
- test cases HOT 3
- md5sum regression HOT 10
- I've added sdfx to curated-code-cad HOT 7
- Support displacement HOT 1
- Rounded union results in a bump and a missing face HOT 4
- More exports in rendering code or better save functions HOT 6
- Zero length line segments ruin Polygon2D objects HOT 1
- obj/screw.go: NPT thread HOT 2
- Redesigning Vec family API HOT 8
- Removing returned errors from shape generation functions HOT 10
- Request to add pointer to `sdf` project HOT 2
- Hollow out 3D meshes by this tool? HOT 3
- Bolts smaller than expected HOT 3
- Threads on package import HOT 4
- Gyroid shape HOT 1
- Feature Request: Extract Vertex Data to an Array HOT 2
- Pack models together tightly HOT 3
- How to duplicate SDF? HOT 5
- How to check if intersection is empty or not HOT 7
- Time consumption of marching cubes algorithm HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdfx.