export to vertices/indices array? #1446
-
I am new to cadquery.
which doesn't even work:
so I must have been missed something while extracting the relevant parts. Is there any simpler approach to this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I presume you mean arrays of triangular mesh vertices and corresponding face indices. In which case you are on the right track with the |
Beta Was this translation helpful? Give feedback.
-
Glad it works |
Beta Was this translation helpful? Give feedback.
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 functiontriangle_mesh_solid
.Hopefully that helps.