Beispiel #1
0
        public static void CreateAndSave(UnaliasedMesh mesh, string path, int radius = 5, bool useKring = true)
        {
            MeshCurvatureDetailGenerator detailGenerator = new MeshCurvatureDetailGenerator();
            var detail = detailGenerator.Generate(mesh, radius, useKring);

            MyAssetDatabase.CreateAndSaveAsset(detail, path);
        }
Beispiel #2
0
        public static MeshCurvatureDetailSE Generate(UnaliasedMesh mesh, int radius = 5, bool useKring = true)
        {
            MeshCurvatureDetailGenerator detailGenerator = new MeshCurvatureDetailGenerator();

            return(detailGenerator.Generate(mesh, radius, useKring));
        }