add geom GUI to HiNC-2025-win-desktop.

This commit is contained in:
2025-05-09 09:25:14 +08:00
parent 784184d6ce
commit 953711bf01
8 changed files with 352 additions and 66 deletions
+6 -2
View File
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using Hi.Geom;
using Hi.Mech.Topo;
@@ -29,6 +30,7 @@ namespace Sample.Geom
LongitudeNum = 30
};
Stl stl = new Stl("geom.stl");
StlFile stlFile = new StlFile("geom.stl");
TransformationGeom transformationGeom = new TransformationGeom()
{
Transformer = new GeneralTransform(1,
@@ -36,7 +38,9 @@ namespace Sample.Geom
new StaticTranslation(new Vec3d(0, 0, 0))),
Geom = stl
};
return new List<IGetStl>([box, cylindroid, stl, transformationGeom]);
GeomCombination geomCombination = new GeomCombination(stlFile, transformationGeom);
return new List<IGetStl>([box, cylindroid, stl, stlFile, transformationGeom]);
}
}
}