Sculpting Pro APi Documentation
Sculpting Pro - Cone Geometry
Simple procedural geometry. Call 'GetPrimitive' to return the specific geometry mesh data.
Public Methods
public static Mesh GetPrimitive(int resolution = 18, float height = 1.0f, float topRadius = 0.1f, float botRadius = 0.7f, string meshName = "Cone")
// Returns a completely generated geometry
Examples
The following paragraph contains an example script that generates a specific primitive geometry type.
using UnityEngine;
using SculptingPro.Geometry;

/// <summary>
/// Example script for getting the procedural primitive type. Assign this script to an object with MeshFilter component.
/// </summary>
public class TestScript : MonoBehaviour
{
private MeshFilter meshFilter;

private void Start()
 {
  meshFilter = GetComponent<MeshFilter>();
  meshFilter.mesh = SculptingProGeometry_Cone.GetPrimitive();
 }
}