blob: 3454e5e3f292ecfd6e3cf41e48e73cfd9f6e5224 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
namespace NGS.MeshFusionPro;
public class SimpleMovableMeshSTDFactory : IMovableCombinedMeshFactory
{
private IMeshToolsFactory _tools;
public SimpleMovableMeshSTDFactory(IMeshToolsFactory tools)
{
_tools = tools;
}
public CombinedMesh CreateMovableMesh(out ICombinedMeshMover mover)
{
CombinedMesh<MeshDataListsSTD> combinedMesh = new CombinedMesh<MeshDataListsSTD>(_tools.CreateMeshCombiner(), _tools.CreateMeshCutter());
mover = new SimpleMeshMoverSTD(combinedMesh.MeshDataInternal);
return combinedMesh;
}
}
|