MeshConvexDecompositionSettings

package
v0.0.0-...-9b8b246 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Parameters to be used with a Mesh convex decomposition operation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advanced

type Advanced = class

Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.

type Any

type Any interface {
	gd.IsClass
	AsMeshConvexDecompositionSettings() Instance
}

type Extension

type Extension[T gdclass.Interface] struct{ gdclass.Extension[T, Instance] }

Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension

func (*Extension[T]) AsMeshConvexDecompositionSettings

func (self *Extension[T]) AsMeshConvexDecompositionSettings() Instance

func (*Extension[T]) AsObject

func (self *Extension[T]) AsObject() [1]gd.Object

func (*Extension[T]) AsRefCounted

func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted

type ID

type ID Object.ID

ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.

func (ID) Instance

func (id ID) Instance() (Instance, bool)

type Instance

Instance of the class with convieniently typed arguments and results.

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AsMeshConvexDecompositionSettings

func (self Instance) AsMeshConvexDecompositionSettings() Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsRefCounted

func (self Instance) AsRefCounted() [1]gd.RefCounted

func (Instance) ConvexHullApproximation

func (self Instance) ConvexHullApproximation() bool

If true, uses approximation for computing convex hulls.

func (Instance) ConvexHullDownsampling

func (self Instance) ConvexHullDownsampling() int

Controls the precision of the convex-hull generation process during the clipping plane selection stage. Ranges from 1 to 16.

func (Instance) ID

func (self Instance) ID() ID

func (Instance) MaxConcavity

func (self Instance) MaxConcavity() Float.X

Maximum concavity. Ranges from 0.0 to 1.0.

func (Instance) MaxConvexHulls

func (self Instance) MaxConvexHulls() int

The maximum number of convex hulls to produce from the merge operation.

func (Instance) MaxNumVerticesPerConvexHull

func (self Instance) MaxNumVerticesPerConvexHull() int

Controls the maximum number of triangles per convex-hull. Ranges from 4 to 1024.

func (Instance) MinVolumePerConvexHull

func (self Instance) MinVolumePerConvexHull() Float.X

Controls the adaptive sampling of the generated convex-hulls. Ranges from 0.0 to 0.01.

func (Instance) Mode

func (self Instance) Mode() Mode

Mode for the approximate convex decomposition.

func (Instance) NormalizeMesh

func (self Instance) NormalizeMesh() bool

If true, normalizes the mesh before applying the convex decomposition.

func (Instance) PlaneDownsampling

func (self Instance) PlaneDownsampling() int

Controls the granularity of the search for the "best" clipping plane. Ranges from 1 to 16.

func (Instance) ProjectHullVertices

func (self Instance) ProjectHullVertices() bool

If true, projects output convex hull vertices onto the original source mesh to increase floating-point accuracy of the results.

func (Instance) Resolution

func (self Instance) Resolution() int

Maximum number of voxels generated during the voxelization stage.

func (Instance) RevolutionAxesClippingBias

func (self Instance) RevolutionAxesClippingBias() Float.X

Controls the bias toward clipping along revolution axes. Ranges from 0.0 to 1.0.

func (Instance) SetConvexHullApproximation

func (self Instance) SetConvexHullApproximation(value bool)

SetConvexHullApproximation sets the property returned by [GetConvexHullApproximation].

func (Instance) SetConvexHullDownsampling

func (self Instance) SetConvexHullDownsampling(value int)

SetConvexHullDownsampling sets the property returned by [GetConvexHullDownsampling].

func (Instance) SetMaxConcavity

func (self Instance) SetMaxConcavity(value Float.X)

SetMaxConcavity sets the property returned by [GetMaxConcavity].

func (Instance) SetMaxConvexHulls

func (self Instance) SetMaxConvexHulls(value int)

SetMaxConvexHulls sets the property returned by [GetMaxConvexHulls].

func (Instance) SetMaxNumVerticesPerConvexHull

func (self Instance) SetMaxNumVerticesPerConvexHull(value int)

SetMaxNumVerticesPerConvexHull sets the property returned by [GetMaxNumVerticesPerConvexHull].

func (Instance) SetMinVolumePerConvexHull

func (self Instance) SetMinVolumePerConvexHull(value Float.X)

SetMinVolumePerConvexHull sets the property returned by [GetMinVolumePerConvexHull].

func (Instance) SetMode

func (self Instance) SetMode(value Mode)

SetMode sets the property returned by [GetMode].

func (Instance) SetNormalizeMesh

func (self Instance) SetNormalizeMesh(value bool)

SetNormalizeMesh sets the property returned by [GetNormalizeMesh].

func (*Instance) SetObject

func (self *Instance) SetObject(obj [1]gd.Object) bool

func (Instance) SetPlaneDownsampling

func (self Instance) SetPlaneDownsampling(value int)

SetPlaneDownsampling sets the property returned by [GetPlaneDownsampling].

func (Instance) SetProjectHullVertices

func (self Instance) SetProjectHullVertices(value bool)

SetProjectHullVertices sets the property returned by [GetProjectHullVertices].

func (Instance) SetResolution

func (self Instance) SetResolution(value int)

SetResolution sets the property returned by [GetResolution].

func (Instance) SetRevolutionAxesClippingBias

func (self Instance) SetRevolutionAxesClippingBias(value Float.X)

SetRevolutionAxesClippingBias sets the property returned by [GetRevolutionAxesClippingBias].

func (Instance) SetSymmetryPlanesClippingBias

func (self Instance) SetSymmetryPlanesClippingBias(value Float.X)

SetSymmetryPlanesClippingBias sets the property returned by [GetSymmetryPlanesClippingBias].

func (Instance) SymmetryPlanesClippingBias

func (self Instance) SymmetryPlanesClippingBias() Float.X

Controls the bias toward clipping along symmetry planes. Ranges from 0.0 to 1.0.

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

type Mode

type Mode int //gd:MeshConvexDecompositionSettings.Mode
const (
	// Constant for voxel-based approximate convex decomposition.
	ConvexDecompositionModeVoxel Mode = 0
	// Constant for tetrahedron-based approximate convex decomposition.
	ConvexDecompositionModeTetrahedron Mode = 1
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL