Exemple #1
0
        public void ShouldGenerateBracketMeshes()
        {
            var meshIds = new[] { GateMeshGenerator.Bracket, GateMeshGenerator.Wire };

            string GetName(IRenderable item, Mesh mesh) => $"{item.Name}{mesh.Name}";

            AssertObjMesh(_tc.Table, _obj, _tc.Gate("LongPlate"), meshIds, GetName, 0.00015f);
            AssertObjMesh(_tc.Table, _obj, _tc.Gate("Plate"), meshIds, GetName);
            AssertObjMesh(_tc.Table, _obj, _tc.Gate("WireRectangle"), meshIds, GetName);
            AssertObjMesh(_tc.Table, _obj, _tc.Gate("WireW"), meshIds, GetName, 0.00015f);
            AssertObjMesh(_tc.Table, _obj, _tc.Gate("TransformedGate"), meshIds, GetName);
            AssertObjMesh(_tc.Table, _obj, _tc.Gate("SurfaceGate"), meshIds, GetName);
        }