Skip to content

DXF Import #1977

Answered by hannobraun
CarbonFlora asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @CarbonFlora, thank you for your interest!

I am stuck at trying to create a HalfEdge. More specifically, how do I create a boundary for HalfEdge?

The best way to create a HalfEdge is probably the BuildHalfEdge trait. If you use that trait, you can just call its methods on HalfEdge, for example:

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 Cycle or Region, for example.

Hope that helps!

Neat CAD kernel btw.

Thank you!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by CarbonFlora
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants