
T
Publisher
timo5034
Mesh Slicing 3D
3D
Mesh Slicing 3D MeshType Triangle UVs Normals
This GDExtension lets you slice meshes. If your Godot version or platform is not supported, you can compile the extension yourself. More information can be found at https://github.com/timo-eberl/mesh-slicing-gdextension/blob/main/README.md .
Mesh Slicing GDExtension
This GDExtension implements Mesh Slicing. For usage see the demo project.
Limitations
- Slicing non-convex meshes will produce unexpected results.
- Supported Mesh Types are:
ArrayMesh
,PrimitiveMesh
- Only Triangle Meshes are supported (
PRIMITIVE_TRIANGLES
) - Only UVs and Normals are transferred from the original mesh.
- The created surface does not have UVs.
Compatibility
Godot 4.2
Cloning
git clone --recurse-submodules link-to-this-repo
If you already cloned and forgot --recurse-submodules
:
git submodule update --init --recursive
Building
See also GDExtension Example from Godot Docs
Requirements: C++ Compiler, SCons as a build tool
scons
Run Demo Project
godot --path ./demo --editor
Use it in your project
After building, copy the contents of demo/bin/
into your project.
Editing with Visual Studio Code
Add the includePath
from the following code snippet to your .vscode/c_cpp_properties.json
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"${workspaceFolder}/godot-cpp/gen/include",
"${workspaceFolder}/src"
],
// ...