MarchingCubesTest
A class in Root.Township, the global namespace.
Test component that builds a marching cubes mesh from random spheres when enabled.
- Listed in Global namespace: M to O
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
MarchingCubesTest() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
6 private and internal fields
Methods
2 private and internal methods
| Member | What it is |
|---|---|
private void OnDisable() | Cleans up the generated mesh. |
private void OnEnable() | Fills a density grid with random spheres, meshes it with MarchingCubes and puts the result on the MeshFilter. |