DXF Import #1977
-
I've taken a pot shot at implementing import functionality for the DXF file format. I'm trying to pass through a Handle into handle_model(). To create a cycle, you create a vec of Handle. I am stuck at trying to create a HalfEdge. More specifically, how do I create a boundary for HalfEdge? I'm not perfect on interpreting Rust syntax, but anything will help. Neat CAD kernel btw. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @CarbonFlora, thank you for your interest!
The best way to create a use fj_core::operations::BuildHalfEdge;
HalfEdge::line_segment([[0., 0.], [1., 0.]], None, services); There are more of these builder traits. You can build a whole Hope that helps!
Thank you! |
Beta Was this translation helpful? Give feedback.
Hey @CarbonFlora, thank you for your interest!
The best way to create a
HalfEdge
is probably theBuildHalfEdge
trait. If youuse
that trait, you can just call its methods onHalfEdge
, for example:There are more of these builder traits. You can build a whole
Cycle
orRegion
, for example.Hope that helps!
Thank you!