开发:api支持旋转uv

pull/1948/MERGE
ChenX 2 years ago
parent dbaa95267d
commit 0a05343b60

@ -1238,15 +1238,16 @@ export class ExtrudeGeometryBuilder
edgeAndLidBuilder: EdgeGeometryBuild;
constructor(private br: ExtrudeSolid)
constructor(private br: ExtrudeSolid, rotateUv: boolean = false)
{
this.GenerateMeshData(br);
this.GenerateMeshData(br, rotateUv);
}
protected GenerateMeshData(br: ExtrudeSolid)
protected GenerateMeshData(br: ExtrudeSolid, rotateUv: boolean)
{
this.edgeAndLidBuilder = new EdgeGeometryBuild(this.br.Thickness);
let rotateUv = (br instanceof Board && br.BoardProcessOption.lines === LinesType.Reverse);
rotateUv = rotateUv || (br instanceof Board && br.BoardProcessOption.lines === LinesType.Reverse);
//计算墙(创建轮廓取出,为了得到正确的轮廓曲线(逆时针之类的))
let outerWall = new ExtudeWall(Contour.CreateContour(br.ContourCurve.Clone()).Curve, DepthType.All, br.Thickness, br.Thickness, DirectionType.Outer);
let grooves = this.ParseGrooves();

Loading…
Cancel
Save