Skip to content

export to vertices/indices array? #1446

Answered by michaelgale
fferri asked this question in Q&A
Discussion options

You must be logged in to vote

I presume you mean arrays of triangular mesh vertices and corresponding face indices. In which case you are on the right track with the BRepMesh_IncrementalMesh function from the OCP kernel; however, the steps to get the triangles and vertices is not trivial.
Luckily, my cq-kit repository has this function already implemented with a function triangle_mesh_solid.
Hopefully that helps.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@fferri
Comment options

@fferri
Comment options

Answer selected by fferri
Comment options

You must be logged in to vote
0 replies
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