Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Mesh Tools

An asset by AR3D
The page banner background of a mountain and forest
Mesh Tools hero image

Quick Information

0 ratings
Mesh Tools icon image
AR3D
Mesh Tools

A bunch of random tools I created for my game project to help with mesh editing and generation.Includes a merge by distance operation, a feature to separate mesh islands, as well as helper functions to create physics bodies from meshes.

Supported Engine Version
4.1
Version String
0.1.0
License Version
MIT
Support Level
community
Modified Date
6 hours ago
Git URL
Issue URL

Mesh Tools

This is a bunch of helper functions that I've created for one of my projects.
It suffered from the worst scope creep imaginable.

Clean Up:

rebuild_csg_node

  • Bakes any CSG node and all it's children into one new CSGMesh3D. The children are then removed after.

merge_by_distance

  • Takes a mesh and performs a merge by distance operation on it, useful after a CSG operation.

Body Problems:

create_rigid_body_from_mesh

  • Creates a RigidBody3D from a given mesh, and defaults to reasonable physics parameters if none are given.

create_static_body_from_mesh

  • Creates a StaticBody3D from a given mesh, and defaults to reasonable physics parameters if none are given.

create_csg_body_from_mesh

  • Creates a CSGMesh3D from a given mesh, and does not use collision by default.

set_center_of_mass

  • A function that is almost mandatory to run on RigidBody3Ds generated from create_rigid_body_from_mesh

Islands:

calculate_mesh_volume

  • Returns the given mesh's volume, in the cubed unit of said mesh. (typically cubic meters) It is assumed the mesh is watertight.

separate_mesh_islands

  • Takes a mesh, and returns an array of all the floating mesh islands separated out of it.

There is an example scene and script that uses just about every function in the toolset.
Warning: The demo scene is very intensive, and an extreme edge case way beyond realistic applications.

Hopefully you will find this helpful in some way or another.

A bunch of random tools I created for my game project to help with mesh editing and generation.
Includes a merge by distance operation, a feature to separate mesh islands, as well as helper functions to create physics bodies from meshes.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Mesh Tools icon image
AR3D
Mesh Tools

A bunch of random tools I created for my game project to help with mesh editing and generation.Includes a merge by distance operation, a feature to separate mesh islands, as well as helper functions to create physics bodies from meshes.

Supported Engine Version
4.1
Version String
0.1.0
License Version
MIT
Support Level
community
Modified Date
6 hours ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers