Variable offset STL geometry #1623
Unanswered
deshikreddyp
asked this question in
Q&A
Replies: 2 comments
-
Thanks for using MeshLib. In general, variable offset is a more difficult thing than a constant offset. But in your case, it looks like you can
(all mesh points must be updated by this formula)
Will it work for you? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Recently we have implemented variable offset in MeshLib master branch: /// consider a mesh where each vertex has additive weight, and this weight is linearly interpolated in mesh triangles,
/// and the distance to a point is considered equal to (euclidean distance - weight),
/// constructs iso-surface of such distance field corresponding to params.offset value using marching cubes
[[nodiscard]] MRVOXELS_API Expected<Mesh> weightedMeshShell( const Mesh & mesh, const WeightedPointsShellParameters& params ); It will be included in the nearest release together with Python API. But you can give it a try right now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have been using this library for a while. I offset an STL file using the following script,
This works very nicely. But now, I want to see if I can vary the offset based on the coordinate.
For example, if I have a cylinder as mesh, I should be getting a truncated cone, i.e, as 'z' coordinate increases, the offset in 'x' and 'y' increases.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions