/// <summary> /// Initializes a new instance of the <see cref="TriMesh"/> class on the /// given space and with the specified data. /// </summary> /// <param name="space">The space that is to contain the geom.</param> /// <param name="data">The triangle mesh data object.</param> public TriMesh(Space space, TriMeshData data) : base(NativeMethods.dCreateTriMesh(space != null ? space.Id : dSpaceID.Null, data.Id, null, null, null)) { this.data = data; }
/// <summary> /// Initializes a new instance of the <see cref="TriMesh"/> class with the /// specified data. /// </summary> /// <param name="data">The triangle mesh data object.</param> public TriMesh(TriMeshData data) : this(null, data) { }