-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathSofaMeshAPI.cs
More file actions
39 lines (33 loc) · 1017 Bytes
/
SofaMeshAPI.cs
File metadata and controls
39 lines (33 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using UnityEngine;
using System;
using System.Runtime.InteropServices;
namespace SofaUnityAPI
{
/// <summary>
/// Class used to handle bindings to the Sofa generic Mesh object.
/// </summary>
public class SofaMeshAPI : SofaBaseMeshAPI
{
/// <summary>
/// Default constructor
/// </summary>
/// <param name="simu">Pointer to the SofaPhysicsAPI</param>
/// <param name="nameID">Name of this Object</param>
/// <param name="isRigid">Type rigid or deformable</param>
public SofaMeshAPI(IntPtr simu, string nameID, bool isCustom = false)
: base(simu, nameID, isCustom)
{
}
/// Destructor
~SofaMeshAPI()
{
Dispose(false);
}
/// Method to create the triangulation from Sofa topology to Unity buffers
public override int[] createTriangulation()
{
//return new int[0];
return base.createTriangulation();
}
}
}