MD_Utilities
Namespace: MDPackage.Utilities
MD(MeshDeformation) utilities - extended library related to meshes, transformations and 3D math.
Public Static Methods
public static class Specific
{
public static bool RestrictFromOtherTypes(GameObject sender, Type focusedType, Type[] restrictedTypes, bool includeSelfType = true, bool checkForBaseClass = true)
public static bool PrepareMeshDeformationModifier(MD_ModifierBase sender, MeshFilter senderFilter, Type[] restrictedTypes, bool checkVertexCountLimit = true, MD_ModifierBase.MeshReferenceType meshReferenceType = MD_ModifierBase.MeshReferenceType.GetFromPreferences)
public static bool CheckVertexCountLimit(int inputVertexCount, GameObject sender = null)
public static Mesh CreateNewMeshReference(Mesh entryMesh)
public static void CreateNewMeshReference(MeshFilter entryMeshFilter)
public static Shader GetProperPipelineDefaultShader()
}
public static class VertexSmoothingLaplacianFilter
{
public static Mesh LaplacianFilter(Mesh mesh, float intensity, bool recalculateNormals = true)
public static Vector3[] LaplacianFilter(Vector3[] vertices, int[] triangles, float intensity)
public static Vector3[] LaplacianFilter(Vector3[] vertices, int[] triangles, float intensity, MDM_SculptingLite.SculptingBrushData sculptingAttributes)
}
public static class VertexSmoothingHCFilter
{
public static Vector3[] HCFilter(Vector3[] inVerts, int[] inTris, MDM_SculptingLite.SculptingBrushData sculptingAttributes, float alpha = 0.8f, float beta = 0.94f)
public static Vector3[] HCFilter(Vector3[] inVerts, int[] inTris, float alpha = 0.8f, float beta = 0.94f)
}
public static class MeshSubdivision
{
public static void Subdivide(Mesh mesh, int level)
}
public static class RecalculateNormalsSmoothingAngle
{
public static void RecalculateNormals(Mesh mesh, float angle = 90)
public static Vector3[] RecalculateNormals(NormalData nd, float angle = 90)
}
public static class Transformations
{
public static Vector3 TransformPoint(Vector3 worldSpacePosition, Quaternion worldSpaceRotation, Vector3 worldSpaceScale, Vector3 localSpacePoint)
public static Vector3 TransformPointInverse(Vector3 worldSpacePosition, Quaternion worldSpaceRotation, Vector3 worldSpaceScale, Vector3 worldSpacePoint)
public static Vector3 TransformDirection(Vector3 worldSpacePosition, Quaternion worldSpaceRotation, Vector3 worldSpaceScale, Vector3 localSpaceDirection)
}
public static class Math3D
{
public static Vector3 CustomLerp(Vector3 a, Vector3 b, float t)
public sealed class Perlin
}