Sculpting Pro - Sphere Geometry
Simple procedural geometry. Call 'GetPrimitive' to return the specific geometry mesh data.
Public Methods
public static Mesh GetPrimitive(int segments = 32, int stack = 32, float radius = 1.0f, float slicesMax = 360.0f, float verticalMax = 180.0f, string meshName = "Sphere")
Examples
The following paragraph contains an example script that generates a specific primitive geometry type.
using UnityEngine;
using SculptingPro.Geometry;
public class TestScript : MonoBehaviour
{
private MeshFilter meshFilter;
private void Start()
{
meshFilter = GetComponent<MeshFilter>();
meshFilter.mesh = SculptingProGeometry_Sphere.GetPrimitive();
}
}