Skip to content

Commit

Permalink
Document limits
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Jun 5, 2024
1 parent 1c91260 commit 93419cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/classes/VoxelMesherTransvoxel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<member name="deep_sampling_enabled" type="bool" setter="set_deep_sampling_enabled" getter="is_deep_sampling_enabled" default="false">
</member>
<member name="edge_clamp_margin" type="float" setter="set_edge_clamp_margin" getter="get_edge_clamp_margin" default="0.02">
When a marching cube cell is computed, vertices may be placed anywhere on edges of the cell, including very close to corners. This can lead to very thin or small triangles, which can be a problem notably for some physics engines. this margin is the minimum distance from corners, below which vertices will be clamped to it. Increasing this value might reduce quality of the mesh introducing small ridges.
When a marching cube cell is computed, vertices may be placed anywhere on edges of the cell, including very close to corners. This can lead to very thin or small triangles, which can be a problem notably for some physics engines. this margin is the minimum distance from corners, below which vertices will be clamped to it. Increasing this value might reduce quality of the mesh introducing small ridges. This property cannot be lower than 0 (in which case no clamping occurs), and cannot be higher than 0.5 (in which case no interpolation occurs as vertices always get placed in the middle of edges).
</member>
<member name="mesh_optimization_enabled" type="bool" setter="set_mesh_optimization_enabled" getter="is_mesh_optimization_enabled" default="false">
</member>
Expand Down

1 comment on commit 93419cb

@Zylann
Copy link
Owner Author

@Zylann Zylann commented on 93419cb Jun 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What what

Please sign in to comment.