@bitbybit-dev/cad-cloud-sdk 1.6.2 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/generated.d.ts +1856 -36
- package/dist/types/generated.d.ts.map +1 -1
- package/dist/types/pipeline-operations.d.ts +1739 -161
- package/dist/types/pipeline-operations.d.ts.map +1 -1
- package/dist/types/pipeline-operations.js +1 -1
- package/dist/types/pipeline-operations.js.map +1 -1
- package/dist/types/schema-exports.d.ts +183 -1
- package/dist/types/schema-exports.d.ts.map +1 -1
- package/dist/validation/request-schemas.d.ts +1536 -77
- package/dist/validation/request-schemas.d.ts.map +1 -1
- package/dist/validation/request-schemas.js +1791 -76
- package/dist/validation/request-schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/types/generated.ts +1856 -36
- package/src/types/pipeline-operations.ts +1792 -161
- package/src/types/schema-exports.ts +183 -1
- package/src/validation/request-schemas.ts +1791 -76
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// ---------------------------------------------------------------------------
|
|
2
2
|
// AUTO-GENERATED by generate-pipeline-types.ts — do not edit manually.
|
|
3
|
-
// Generated from operation-catalog.json v1.
|
|
3
|
+
// Generated from operation-catalog.json v1.8.0
|
|
4
4
|
// ---------------------------------------------------------------------------
|
|
5
5
|
|
|
6
6
|
/* eslint-disable @typescript-eslint/no-empty-object-type */
|
|
@@ -40,6 +40,39 @@ export type OperationPath =
|
|
|
40
40
|
| "csv.parseToJsonWithHeaders"
|
|
41
41
|
| "csv.queryColumn"
|
|
42
42
|
| "csv.queryRowsByValue"
|
|
43
|
+
| "io.drawing.arcSegment"
|
|
44
|
+
| "io.drawing.circleSegment"
|
|
45
|
+
| "io.drawing.clippedHatchLines"
|
|
46
|
+
| "io.drawing.dimensionExtent"
|
|
47
|
+
| "io.drawing.dimensionPicture"
|
|
48
|
+
| "io.drawing.dxfToSvg"
|
|
49
|
+
| "io.drawing.ellipseSegment"
|
|
50
|
+
| "io.drawing.hatch"
|
|
51
|
+
| "io.drawing.hatchLines"
|
|
52
|
+
| "io.drawing.hatchOutlines"
|
|
53
|
+
| "io.drawing.lineSegment"
|
|
54
|
+
| "io.drawing.part"
|
|
55
|
+
| "io.drawing.path"
|
|
56
|
+
| "io.drawing.polylineSegment"
|
|
57
|
+
| "io.drawing.scaleParts"
|
|
58
|
+
| "io.drawing.splineSegment"
|
|
59
|
+
| "io.drawing.svgToDxf"
|
|
60
|
+
| "io.drawing.text"
|
|
61
|
+
| "io.drawing.textSize"
|
|
62
|
+
| "io.drawing.textStrokes"
|
|
63
|
+
| "io.dxf.arcSegment"
|
|
64
|
+
| "io.dxf.circleSegment"
|
|
65
|
+
| "io.dxf.dxfCreate"
|
|
66
|
+
| "io.dxf.dxfRead"
|
|
67
|
+
| "io.dxf.ellipseSegment"
|
|
68
|
+
| "io.dxf.lineSegment"
|
|
69
|
+
| "io.dxf.path"
|
|
70
|
+
| "io.dxf.pathsPart"
|
|
71
|
+
| "io.dxf.polylineSegment"
|
|
72
|
+
| "io.dxf.splineSegment"
|
|
73
|
+
| "io.svg.pathData"
|
|
74
|
+
| "io.svg.svgCreate"
|
|
75
|
+
| "io.svg.svgRead"
|
|
43
76
|
| "jscad.booleans.intersect"
|
|
44
77
|
| "jscad.booleans.intersectTwo"
|
|
45
78
|
| "jscad.booleans.minkowskiSum"
|
|
@@ -120,6 +153,7 @@ export type OperationPath =
|
|
|
120
153
|
| "json.stringify"
|
|
121
154
|
| "line.create"
|
|
122
155
|
| "line.createSegment"
|
|
156
|
+
| "line.distanceToPoint"
|
|
123
157
|
| "line.getEndPoint"
|
|
124
158
|
| "line.getPointOnLine"
|
|
125
159
|
| "line.getStartPoint"
|
|
@@ -387,6 +421,7 @@ export type OperationPath =
|
|
|
387
421
|
| "occt.analysis.surfaces.closestPoints"
|
|
388
422
|
| "occt.analysis.surfaces.curvaturesOnUVs"
|
|
389
423
|
| "occt.analysis.surfaces.surfaceType"
|
|
424
|
+
| "occt.assembly.manager.addDocumentPmi"
|
|
390
425
|
| "occt.assembly.manager.buildAssemblyDocument"
|
|
391
426
|
| "occt.assembly.manager.combineStructure"
|
|
392
427
|
| "occt.assembly.manager.createAssemblyNode"
|
|
@@ -394,6 +429,10 @@ export type OperationPath =
|
|
|
394
429
|
| "occt.assembly.manager.createInstanceNode"
|
|
395
430
|
| "occt.assembly.manager.createPart"
|
|
396
431
|
| "occt.assembly.manager.createPartUpdate"
|
|
432
|
+
| "occt.assembly.manager.createPmiDatum"
|
|
433
|
+
| "occt.assembly.manager.createPmiDimension"
|
|
434
|
+
| "occt.assembly.manager.createPmiShape"
|
|
435
|
+
| "occt.assembly.manager.createPmiTolerance"
|
|
397
436
|
| "occt.assembly.manager.deleteDocument"
|
|
398
437
|
| "occt.assembly.manager.exportDocumentToGltf"
|
|
399
438
|
| "occt.assembly.manager.exportDocumentToGltfWithDraco"
|
|
@@ -403,9 +442,13 @@ export type OperationPath =
|
|
|
403
442
|
| "occt.assembly.manager.loadGltfToDoc"
|
|
404
443
|
| "occt.assembly.manager.loadObjToDoc"
|
|
405
444
|
| "occt.assembly.manager.loadStepToDoc"
|
|
445
|
+
| "occt.assembly.manager.removeDocumentPmi"
|
|
406
446
|
| "occt.assembly.manager.setDocLabelColor"
|
|
447
|
+
| "occt.assembly.manager.setDocLabelColors"
|
|
407
448
|
| "occt.assembly.manager.setDocLabelName"
|
|
449
|
+
| "occt.assembly.manager.setDocLabelNames"
|
|
408
450
|
| "occt.assembly.query.getAssemblyHierarchy"
|
|
451
|
+
| "occt.assembly.query.getDocumentAnnotations"
|
|
409
452
|
| "occt.assembly.query.getDocumentParts"
|
|
410
453
|
| "occt.assembly.query.getDocumentPmi"
|
|
411
454
|
| "occt.assembly.query.getLabelColor"
|
|
@@ -534,6 +577,8 @@ export type OperationPath =
|
|
|
534
577
|
| "occt.io.fileLengthUnit"
|
|
535
578
|
| "occt.io.loadBrep"
|
|
536
579
|
| "occt.io.loadBrepBinary"
|
|
580
|
+
| "occt.io.loadDxf"
|
|
581
|
+
| "occt.io.loadDxfStructured"
|
|
537
582
|
| "occt.io.loadSTEPorIGES"
|
|
538
583
|
| "occt.io.loadStl"
|
|
539
584
|
| "occt.io.parseStepToJson"
|
|
@@ -541,6 +586,8 @@ export type OperationPath =
|
|
|
541
586
|
| "occt.io.saveShapeBrepAndReturn"
|
|
542
587
|
| "occt.io.saveShapeBrepBinary"
|
|
543
588
|
| "occt.io.saveShapeBrepBinaryAndReturn"
|
|
589
|
+
| "occt.io.saveShapeDxf"
|
|
590
|
+
| "occt.io.saveShapeDxfAndReturn"
|
|
544
591
|
| "occt.io.saveShapeObj"
|
|
545
592
|
| "occt.io.saveShapeObjAndReturn"
|
|
546
593
|
| "occt.io.saveShapePly"
|
|
@@ -552,6 +599,8 @@ export type OperationPath =
|
|
|
552
599
|
| "occt.io.saveShapeSvg"
|
|
553
600
|
| "occt.io.saveShapeSvgAndReturn"
|
|
554
601
|
| "occt.io.shapeToDxfPaths"
|
|
602
|
+
| "occt.io.svgCreate"
|
|
603
|
+
| "occt.io.svgLayer"
|
|
555
604
|
| "occt.operations.boundingBoxCenterOfShape"
|
|
556
605
|
| "occt.operations.boundingBoxMaxOfShape"
|
|
557
606
|
| "occt.operations.boundingBoxMinOfShape"
|
|
@@ -570,7 +619,9 @@ export type OperationPath =
|
|
|
570
619
|
| "occt.operations.extrude"
|
|
571
620
|
| "occt.operations.extrudeShapes"
|
|
572
621
|
| "occt.operations.extrudeWithHistory"
|
|
622
|
+
| "occt.operations.hatchedSectionByFrame"
|
|
573
623
|
| "occt.operations.hiddenLines"
|
|
624
|
+
| "occt.operations.hiddenLinesByKind"
|
|
574
625
|
| "occt.operations.loft"
|
|
575
626
|
| "occt.operations.loftAdvanced"
|
|
576
627
|
| "occt.operations.loftAdvancedWithHistory"
|
|
@@ -1094,6 +1145,8 @@ export type OperationPath =
|
|
|
1094
1145
|
| "occt.transforms.translate"
|
|
1095
1146
|
| "occt.transforms.translateShapes"
|
|
1096
1147
|
| "occt.transforms.translationToMatrix"
|
|
1148
|
+
| "occtPro.nesting.inspect"
|
|
1149
|
+
| "occtPro.nesting.nest"
|
|
1097
1150
|
| "occtPro.sheetMetal.unfoldFaceReport"
|
|
1098
1151
|
| "occtPro.sheetMetal.unfoldFaceToFlat"
|
|
1099
1152
|
| "occtPro.sheetMetal.unfoldSolidReport"
|
|
@@ -1812,6 +1865,819 @@ export interface OperationParams {
|
|
|
1812
1865
|
/** Header names whose cells are parsed as numbers, in the result and in the comparison */
|
|
1813
1866
|
numberColumns?: unknown[] | PipelineRef;
|
|
1814
1867
|
};
|
|
1868
|
+
/**
|
|
1869
|
+
* Makes a circular arc of a drawing path, running counterclockwise about its `center` from
|
|
1870
|
+
* `startAngle` to `endAngle`, in degrees, in the XY plane unless a `normal` tilts it.
|
|
1871
|
+
*/
|
|
1872
|
+
"io.drawing.arcSegment": {
|
|
1873
|
+
/** The center of the arc's circle. */
|
|
1874
|
+
center: [number, number, number] | PipelineRef;
|
|
1875
|
+
/** Distance from the center to the arc, in drawing units. */
|
|
1876
|
+
radius: number | PipelineRef;
|
|
1877
|
+
/**
|
|
1878
|
+
* Where the arc starts, in degrees counterclockwise from the X axis (the X axis CAD programs
|
|
1879
|
+
* derive from the `normal` when one is given).
|
|
1880
|
+
*/
|
|
1881
|
+
startAngle: number | PipelineRef;
|
|
1882
|
+
/**
|
|
1883
|
+
* Where the arc ends, in degrees; the arc runs counterclockwise from the start, through 0
|
|
1884
|
+
* when the end is below the start.
|
|
1885
|
+
*/
|
|
1886
|
+
endAngle: number | PipelineRef;
|
|
1887
|
+
/**
|
|
1888
|
+
* The direction the arc's plane faces, counterclockwise seen from its tip. Leave it out for an
|
|
1889
|
+
* arc in the XY plane facing +Z.
|
|
1890
|
+
*/
|
|
1891
|
+
normal?: [number, number, number] | PipelineRef;
|
|
1892
|
+
};
|
|
1893
|
+
/**
|
|
1894
|
+
* Makes a whole circle of a drawing path from its `center` and `radius`, in the XY plane unless a
|
|
1895
|
+
* `normal` tilts it.
|
|
1896
|
+
*/
|
|
1897
|
+
"io.drawing.circleSegment": {
|
|
1898
|
+
/** Where the circle's center lies; without a Z it lies at Z 0. */
|
|
1899
|
+
center: [number, number, number] | PipelineRef;
|
|
1900
|
+
/** Distance from the center to the circle, in drawing units. */
|
|
1901
|
+
radius: number | PipelineRef;
|
|
1902
|
+
/** The direction the circle's plane faces. Leave it out for a circle in the XY plane. */
|
|
1903
|
+
normal?: [number, number, number] | PipelineRef;
|
|
1904
|
+
};
|
|
1905
|
+
/**
|
|
1906
|
+
* Gives the lines of a hatch's pattern clipped to its region, for a renderer that draws them
|
|
1907
|
+
* itself.
|
|
1908
|
+
*
|
|
1909
|
+
* Inside follows the even-odd rule over every boundary, as `io.svg.svgCreate` fills a hatch, and
|
|
1910
|
+
* curves are followed within `tolerance`. The lines stand where `hatchLines` puts them. `solid`
|
|
1911
|
+
* gives none; a spacing too fine for the region throws.
|
|
1912
|
+
*/
|
|
1913
|
+
"io.drawing.clippedHatchLines": {
|
|
1914
|
+
/**
|
|
1915
|
+
* The closed paths that bound the region, in the drawing's XY plane; a boundary inside another
|
|
1916
|
+
* cuts a hole, and one inside that hole is filled again.
|
|
1917
|
+
*/
|
|
1918
|
+
boundaries: unknown[] | PipelineRef;
|
|
1919
|
+
/** What the region is filled with; `solid` has no lines. */
|
|
1920
|
+
pattern?: "solid" | "ansi31" | "ansi32" | "ansi37" | PipelineRef;
|
|
1921
|
+
/** The angle of the pattern's lines in degrees, counterclockwise from the X axis. */
|
|
1922
|
+
angle?: number | PipelineRef;
|
|
1923
|
+
/** The distance between the pattern's lines, in drawing units. */
|
|
1924
|
+
spacing?: number | PipelineRef;
|
|
1925
|
+
/**
|
|
1926
|
+
* How far, in drawing units, the outline may stray from a curved boundary: arcs, circles,
|
|
1927
|
+
* ellipses and splines become straight pieces this close to the curve.
|
|
1928
|
+
*/
|
|
1929
|
+
tolerance?: number | PipelineRef;
|
|
1930
|
+
};
|
|
1931
|
+
/**
|
|
1932
|
+
* Measures the box a dimension's picture fills, the box `dimensionPicture` gives, without drawing
|
|
1933
|
+
* the letters.
|
|
1934
|
+
*
|
|
1935
|
+
* The box holds the whole height the stroke font's letters may reach, so a layout can make room
|
|
1936
|
+
* before drawing.
|
|
1937
|
+
* Example: a linear dimension from [0, 0] to [60, 0] at offset 12 -> min [0, 0.875], max [60, 17.04]
|
|
1938
|
+
*/
|
|
1939
|
+
"io.drawing.dimensionExtent": {
|
|
1940
|
+
/**
|
|
1941
|
+
* For `linear`, the first point measured; for `diameter`, `radius` and `angular`, the center of
|
|
1942
|
+
* the circle or the point where the two arms of the angle meet.
|
|
1943
|
+
*/
|
|
1944
|
+
start: [number, number] | PipelineRef;
|
|
1945
|
+
/**
|
|
1946
|
+
* For `linear`, the second point measured; for `diameter` and `radius`, a point on the circle; for
|
|
1947
|
+
* `angular`, a point on the first arm, where the arc passes.
|
|
1948
|
+
*/
|
|
1949
|
+
end: [number, number] | PipelineRef;
|
|
1950
|
+
/** What the dimension measures; it decides what `start`, `end`, `offset` and `angle` mean. */
|
|
1951
|
+
kind?: "linear" | "diameter" | "radius" | "angular" | PipelineRef;
|
|
1952
|
+
/**
|
|
1953
|
+
* For `linear`, the direction measured along, such as [1, 0] for a horizontal dimension; left
|
|
1954
|
+
* out, from `start` to `end`. Other kinds ignore it.
|
|
1955
|
+
*/
|
|
1956
|
+
direction?: [number, number] | PipelineRef;
|
|
1957
|
+
/**
|
|
1958
|
+
* For `linear`, how far the dimension line stands from `start`, in drawing units, to the left of
|
|
1959
|
+
* `direction`; negative puts it right. Other kinds ignore it.
|
|
1960
|
+
*/
|
|
1961
|
+
offset?: number | PipelineRef;
|
|
1962
|
+
/**
|
|
1963
|
+
* For `angular`, the angle in degrees from the first arm, the one through `end`,
|
|
1964
|
+
* counterclockwise to the second arm. Other kinds ignore it.
|
|
1965
|
+
*/
|
|
1966
|
+
angle?: number | PipelineRef;
|
|
1967
|
+
/**
|
|
1968
|
+
* The number written; left out, the one measured. A diameter is written after the diameter
|
|
1969
|
+
* sign, a radius after R, an angle before the degree sign.
|
|
1970
|
+
*/
|
|
1971
|
+
value?: number | PipelineRef;
|
|
1972
|
+
/** How many decimals the value keeps; trailing zeros are dropped, so 15.50 shows as 15.5. */
|
|
1973
|
+
decimalPlaces?: number | PipelineRef;
|
|
1974
|
+
/**
|
|
1975
|
+
* How far above the value the measure may lie, written `+0.1`, or `±0.1` when equal to
|
|
1976
|
+
* `lowerTolerance`; 0 when only `lowerTolerance` is given.
|
|
1977
|
+
*/
|
|
1978
|
+
upperTolerance?: number | PipelineRef;
|
|
1979
|
+
/**
|
|
1980
|
+
* How far below the value the measure may lie, as an amount, written `-0.05`; 0 when only
|
|
1981
|
+
* `upperTolerance` is given. Without either, no tolerance is written.
|
|
1982
|
+
*/
|
|
1983
|
+
lowerTolerance?: number | PipelineRef;
|
|
1984
|
+
/** The height of the text's digits, in drawing units; the gaps around the lines are sized from it. */
|
|
1985
|
+
textHeight?: number | PipelineRef;
|
|
1986
|
+
/**
|
|
1987
|
+
* The length of each arrowhead, in drawing units; each is a third as wide as it is long. Left
|
|
1988
|
+
* out, it is `textHeight`.
|
|
1989
|
+
*/
|
|
1990
|
+
arrowLength?: number | PipelineRef;
|
|
1991
|
+
};
|
|
1992
|
+
/**
|
|
1993
|
+
* Draws a dimension in the drawing's plane: its dimension line or arc, its extension lines, filled
|
|
1994
|
+
* arrowheads touching them, and its value in the stroke font.
|
|
1995
|
+
*
|
|
1996
|
+
* The text reads from left to right or from bottom to top, past the line's end when the line is
|
|
1997
|
+
* too short for it; arrows go outside a span too short for them.
|
|
1998
|
+
*/
|
|
1999
|
+
"io.drawing.dimensionPicture": {
|
|
2000
|
+
/**
|
|
2001
|
+
* For `linear`, the first point measured; for `diameter`, `radius` and `angular`, the center of
|
|
2002
|
+
* the circle or the point where the two arms of the angle meet.
|
|
2003
|
+
*/
|
|
2004
|
+
start: [number, number] | PipelineRef;
|
|
2005
|
+
/**
|
|
2006
|
+
* For `linear`, the second point measured; for `diameter` and `radius`, a point on the circle; for
|
|
2007
|
+
* `angular`, a point on the first arm, where the arc passes.
|
|
2008
|
+
*/
|
|
2009
|
+
end: [number, number] | PipelineRef;
|
|
2010
|
+
/** What the dimension measures; it decides what `start`, `end`, `offset` and `angle` mean. */
|
|
2011
|
+
kind?: "linear" | "diameter" | "radius" | "angular" | PipelineRef;
|
|
2012
|
+
/**
|
|
2013
|
+
* For `linear`, the direction measured along, such as [1, 0] for a horizontal dimension; left
|
|
2014
|
+
* out, from `start` to `end`. Other kinds ignore it.
|
|
2015
|
+
*/
|
|
2016
|
+
direction?: [number, number] | PipelineRef;
|
|
2017
|
+
/**
|
|
2018
|
+
* For `linear`, how far the dimension line stands from `start`, in drawing units, to the left of
|
|
2019
|
+
* `direction`; negative puts it right. Other kinds ignore it.
|
|
2020
|
+
*/
|
|
2021
|
+
offset?: number | PipelineRef;
|
|
2022
|
+
/**
|
|
2023
|
+
* For `angular`, the angle in degrees from the first arm, the one through `end`,
|
|
2024
|
+
* counterclockwise to the second arm. Other kinds ignore it.
|
|
2025
|
+
*/
|
|
2026
|
+
angle?: number | PipelineRef;
|
|
2027
|
+
/**
|
|
2028
|
+
* The number written; left out, the one measured. A diameter is written after the diameter
|
|
2029
|
+
* sign, a radius after R, an angle before the degree sign.
|
|
2030
|
+
*/
|
|
2031
|
+
value?: number | PipelineRef;
|
|
2032
|
+
/** How many decimals the value keeps; trailing zeros are dropped, so 15.50 shows as 15.5. */
|
|
2033
|
+
decimalPlaces?: number | PipelineRef;
|
|
2034
|
+
/**
|
|
2035
|
+
* How far above the value the measure may lie, written `+0.1`, or `±0.1` when equal to
|
|
2036
|
+
* `lowerTolerance`; 0 when only `lowerTolerance` is given.
|
|
2037
|
+
*/
|
|
2038
|
+
upperTolerance?: number | PipelineRef;
|
|
2039
|
+
/**
|
|
2040
|
+
* How far below the value the measure may lie, as an amount, written `-0.05`; 0 when only
|
|
2041
|
+
* `upperTolerance` is given. Without either, no tolerance is written.
|
|
2042
|
+
*/
|
|
2043
|
+
lowerTolerance?: number | PipelineRef;
|
|
2044
|
+
/** The height of the text's digits, in drawing units; the gaps around the lines are sized from it. */
|
|
2045
|
+
textHeight?: number | PipelineRef;
|
|
2046
|
+
/**
|
|
2047
|
+
* The length of each arrowhead, in drawing units; each is a third as wide as it is long. Left
|
|
2048
|
+
* out, it is `textHeight`.
|
|
2049
|
+
*/
|
|
2050
|
+
arrowLength?: number | PipelineRef;
|
|
2051
|
+
};
|
|
2052
|
+
/**
|
|
2053
|
+
* Converts a DXF file into an SVG file, reading it as `io.dxf.dxfRead` does and writing it as
|
|
2054
|
+
* `io.svg.svgCreate` does.
|
|
2055
|
+
*
|
|
2056
|
+
* Layers become Inkscape layers and the SVG takes its true size from the unit the DXF states.
|
|
2057
|
+
* Splines given only by fit points are left out and named in `warnings`; a drawing too large to
|
|
2058
|
+
* write throws.
|
|
2059
|
+
*/
|
|
2060
|
+
"io.drawing.dxfToSvg": {
|
|
2061
|
+
/**
|
|
2062
|
+
* An ASCII DXF file from R12 on, as text or bytes; older bytes not in UTF-8 are read in the
|
|
2063
|
+
* header's code page, or as Windows-1252.
|
|
2064
|
+
*/
|
|
2065
|
+
dxf: unknown | PipelineRef;
|
|
2066
|
+
/** When true, layers the file has switched off or frozen are written as well. */
|
|
2067
|
+
includeHiddenLayers?: boolean | PipelineRef;
|
|
2068
|
+
/**
|
|
2069
|
+
* How wide the lines are, in drawing units. Left out, a five-hundredth of the drawing's larger
|
|
2070
|
+
* side.
|
|
2071
|
+
*/
|
|
2072
|
+
strokeWidth?: number | PipelineRef;
|
|
2073
|
+
/**
|
|
2074
|
+
* The empty border around the drawing, in drawing units. Left out, a fortieth of the
|
|
2075
|
+
* drawing's larger side.
|
|
2076
|
+
*/
|
|
2077
|
+
margin?: number | PipelineRef;
|
|
2078
|
+
/**
|
|
2079
|
+
* The largest distance, in drawing units, between a curve SVG cannot draw exactly (a rational
|
|
2080
|
+
* or higher degree spline) and the cubic curves that stand in for it.
|
|
2081
|
+
*/
|
|
2082
|
+
tolerance?: number | PipelineRef;
|
|
2083
|
+
};
|
|
2084
|
+
/**
|
|
2085
|
+
* Makes an ellipse, or an arc of one, for a drawing path.
|
|
2086
|
+
*
|
|
2087
|
+
* The ellipse is given by its center, the vector to the end of its major axis and the minor to
|
|
2088
|
+
* major ratio; parameters in radians pick the arc, running counterclockwise about the normal.
|
|
2089
|
+
*/
|
|
2090
|
+
"io.drawing.ellipseSegment": {
|
|
2091
|
+
/** Where the ellipse's center lies; without a Z it lies at Z 0. */
|
|
2092
|
+
center: [number, number, number] | PipelineRef;
|
|
2093
|
+
/**
|
|
2094
|
+
* The vector from the center to one end of the major axis; its length is the major radius,
|
|
2095
|
+
* in drawing units.
|
|
2096
|
+
*/
|
|
2097
|
+
majorAxis: [number, number, number] | PipelineRef;
|
|
2098
|
+
/** The minor radius divided by the major radius. */
|
|
2099
|
+
ratio: number | PipelineRef;
|
|
2100
|
+
/**
|
|
2101
|
+
* Where the arc starts, as the ellipse's parameter t in radians (the point center +
|
|
2102
|
+
* cos(t) `majorAxis` + sin(t) minor axis), the angle only when `ratio` is 1.
|
|
2103
|
+
*/
|
|
2104
|
+
startParameter?: number | PipelineRef;
|
|
2105
|
+
/**
|
|
2106
|
+
* Where the arc ends, as the same parameter in radians; the arc runs counterclockwise from the
|
|
2107
|
+
* start, through 0 when the end is below the start.
|
|
2108
|
+
*/
|
|
2109
|
+
endParameter?: number | PipelineRef;
|
|
2110
|
+
/**
|
|
2111
|
+
* The direction the ellipse's plane faces, perpendicular to `majorAxis`. Leave it out for an
|
|
2112
|
+
* ellipse in the XY plane facing +Z.
|
|
2113
|
+
*/
|
|
2114
|
+
normal?: [number, number, number] | PipelineRef;
|
|
2115
|
+
};
|
|
2116
|
+
/**
|
|
2117
|
+
* Makes a hatched region for a drawing part's `hatches`: what the boundaries enclose, filled with
|
|
2118
|
+
* a pattern of lines or with solid ink.
|
|
2119
|
+
*
|
|
2120
|
+
* A boundary inside another cuts a hole, and a boundary whose ends do not meet is closed by a
|
|
2121
|
+
* straight line.
|
|
2122
|
+
*/
|
|
2123
|
+
"io.drawing.hatch": {
|
|
2124
|
+
/** The closed paths that bound the region, in the drawing's XY plane. */
|
|
2125
|
+
boundaries: unknown[] | PipelineRef;
|
|
2126
|
+
/** What the region is filled with. */
|
|
2127
|
+
pattern?: "solid" | "ansi31" | "ansi32" | "ansi37" | PipelineRef;
|
|
2128
|
+
/**
|
|
2129
|
+
* The angle of the pattern's lines in degrees, counterclockwise from the X axis; `solid`
|
|
2130
|
+
* ignores it.
|
|
2131
|
+
*/
|
|
2132
|
+
angle?: number | PipelineRef;
|
|
2133
|
+
/**
|
|
2134
|
+
* The distance between the pattern's lines, in drawing units; `solid` ignores it. DXF writes
|
|
2135
|
+
* it as a scale of the pattern in `acad.pat` for an inch drawing, in `acadiso.pat` otherwise.
|
|
2136
|
+
*/
|
|
2137
|
+
spacing?: number | PipelineRef;
|
|
2138
|
+
};
|
|
2139
|
+
/**
|
|
2140
|
+
* Gives the lines of a hatch's pattern, each from side to side of the box around its
|
|
2141
|
+
* boundaries, for a renderer that draws them itself and clips them to the region.
|
|
2142
|
+
*
|
|
2143
|
+
* The lines stand where `io.svg.svgCreate` and `io.dxf.dxfCreate` put them, each whole. `solid`
|
|
2144
|
+
* gives none, and a spacing too fine for the region throws.
|
|
2145
|
+
*/
|
|
2146
|
+
"io.drawing.hatchLines": {
|
|
2147
|
+
/** The closed paths that bound the region, in the drawing's XY plane. */
|
|
2148
|
+
boundaries: unknown[] | PipelineRef;
|
|
2149
|
+
/** What the region is filled with. */
|
|
2150
|
+
pattern?: "solid" | "ansi31" | "ansi32" | "ansi37" | PipelineRef;
|
|
2151
|
+
/**
|
|
2152
|
+
* The angle of the pattern's lines in degrees, counterclockwise from the X axis; `solid`
|
|
2153
|
+
* ignores it.
|
|
2154
|
+
*/
|
|
2155
|
+
angle?: number | PipelineRef;
|
|
2156
|
+
/**
|
|
2157
|
+
* The distance between the pattern's lines, in drawing units; `solid` ignores it. DXF writes
|
|
2158
|
+
* it as a scale of the pattern in `acad.pat` for an inch drawing, in `acadiso.pat` otherwise.
|
|
2159
|
+
*/
|
|
2160
|
+
spacing?: number | PipelineRef;
|
|
2161
|
+
};
|
|
2162
|
+
/**
|
|
2163
|
+
* Gives the outlines of a hatch's region as closed loops of points, curves followed within
|
|
2164
|
+
* `tolerance`, for a renderer that fills the region itself.
|
|
2165
|
+
*
|
|
2166
|
+
* Each loop lists every corner once. Fill them under the even-odd rule, as
|
|
2167
|
+
* `mesh.triangulateLoops` does, to keep the holes open.
|
|
2168
|
+
* Example: a circle of radius 5 at tolerance 0.01 -> one loop of 50 points
|
|
2169
|
+
*/
|
|
2170
|
+
"io.drawing.hatchOutlines": {
|
|
2171
|
+
/**
|
|
2172
|
+
* The closed paths that bound the region, in the drawing's XY plane; a boundary inside another
|
|
2173
|
+
* cuts a hole, and one inside that hole is filled again.
|
|
2174
|
+
*/
|
|
2175
|
+
boundaries: unknown[] | PipelineRef;
|
|
2176
|
+
/** What the region is filled with; `solid` has no lines. */
|
|
2177
|
+
pattern?: "solid" | "ansi31" | "ansi32" | "ansi37" | PipelineRef;
|
|
2178
|
+
/** The angle of the pattern's lines in degrees, counterclockwise from the X axis. */
|
|
2179
|
+
angle?: number | PipelineRef;
|
|
2180
|
+
/** The distance between the pattern's lines, in drawing units. */
|
|
2181
|
+
spacing?: number | PipelineRef;
|
|
2182
|
+
/**
|
|
2183
|
+
* How far, in drawing units, the outline may stray from a curved boundary: arcs, circles,
|
|
2184
|
+
* ellipses and splines become straight pieces this close to the curve.
|
|
2185
|
+
*/
|
|
2186
|
+
tolerance?: number | PipelineRef;
|
|
2187
|
+
};
|
|
2188
|
+
/** Makes a straight segment of a drawing path, from `start` to `end`. */
|
|
2189
|
+
"io.drawing.lineSegment": {
|
|
2190
|
+
/** Where the line starts. */
|
|
2191
|
+
start: [number, number, number] | PipelineRef;
|
|
2192
|
+
/** Where the line ends. */
|
|
2193
|
+
end: [number, number, number] | PipelineRef;
|
|
2194
|
+
};
|
|
2195
|
+
/**
|
|
2196
|
+
* Puts paths on a named layer with a color and a line type, making one part of a drawing.
|
|
2197
|
+
*
|
|
2198
|
+
* A drawing may hold several parts; `io.dxf.dxfCreate` writes them as DXF and `io.svg.svgCreate`
|
|
2199
|
+
* as SVG.
|
|
2200
|
+
*/
|
|
2201
|
+
"io.drawing.part": {
|
|
2202
|
+
/** The paths of the part, each a run of segments. */
|
|
2203
|
+
paths: unknown[] | PipelineRef;
|
|
2204
|
+
/**
|
|
2205
|
+
* The layer the paths go on. Parts may share a layer, which takes the first part's color and
|
|
2206
|
+
* line type; every part's paths keep their own.
|
|
2207
|
+
*/
|
|
2208
|
+
layer?: string | PipelineRef;
|
|
2209
|
+
/** The color of every path in the part, as a hex string such as `#000000`. */
|
|
2210
|
+
color?: unknown | PipelineRef;
|
|
2211
|
+
/** Whether the lines are whole or dashed, such as `hidden` for edges a view cannot see. */
|
|
2212
|
+
lineType?: "continuous" | "dashed" | "hidden" | "center" | "dotted" | PipelineRef;
|
|
2213
|
+
/**
|
|
2214
|
+
* How wide the part's lines and text strokes are, in drawing units. Left out, the writer's own
|
|
2215
|
+
* width is used: the drawing's `strokeWidth` in SVG, the layer's in DXF.
|
|
2216
|
+
*/
|
|
2217
|
+
lineWeight?: number | PipelineRef;
|
|
2218
|
+
/** Lines of text on the part's layer, in its color. */
|
|
2219
|
+
texts?: unknown[] | PipelineRef;
|
|
2220
|
+
/** Hatched regions on the part's layer, in its color. */
|
|
2221
|
+
hatches?: unknown[] | PipelineRef;
|
|
2222
|
+
};
|
|
2223
|
+
/**
|
|
2224
|
+
* Joins segments into one path, drawn in order like the edges of a wire; segments that meet
|
|
2225
|
+
* are drawn as one stroke in SVG.
|
|
2226
|
+
*/
|
|
2227
|
+
"io.drawing.path": {
|
|
2228
|
+
/**
|
|
2229
|
+
* The segments of the path, in order; where one ends at the next one's start, SVG draws them
|
|
2230
|
+
* as one stroke.
|
|
2231
|
+
*/
|
|
2232
|
+
segments: unknown[] | PipelineRef;
|
|
2233
|
+
};
|
|
2234
|
+
/**
|
|
2235
|
+
* Makes connected straight segments through `points`, which `bulges` can bend into arcs;
|
|
2236
|
+
* `closed` joins the last point back to the first.
|
|
2237
|
+
*/
|
|
2238
|
+
"io.drawing.polylineSegment": {
|
|
2239
|
+
/**
|
|
2240
|
+
* The vertices, in order. A last point equal to the first closes the polyline as `closed`
|
|
2241
|
+
* does.
|
|
2242
|
+
*/
|
|
2243
|
+
points: [number, number, number][] | PipelineRef;
|
|
2244
|
+
/** Whether a segment joins the last vertex back to the first. */
|
|
2245
|
+
closed?: boolean | PipelineRef;
|
|
2246
|
+
/**
|
|
2247
|
+
* One per vertex, bending the segment after it into an arc: the tangent of a quarter of its
|
|
2248
|
+
* turn, 0 for straight, positive counterclockwise. Left out, every segment is straight.
|
|
2249
|
+
*/
|
|
2250
|
+
bulges?: number[] | PipelineRef;
|
|
2251
|
+
};
|
|
2252
|
+
/**
|
|
2253
|
+
* Scales drawing parts about the origin, returning new parts and leaving the given ones unchanged.
|
|
2254
|
+
*
|
|
2255
|
+
* Points, radii, axes, text heights, hatch spacings and line weights are multiplied by `factor`;
|
|
2256
|
+
* angles, bulges, knots and weights stay. Scale before writing with `io.dxf.dxfCreate` or
|
|
2257
|
+
* `io.svg.svgCreate`: their `unit` labels the drawing and never scales it. A factor not above 0
|
|
2258
|
+
* throws.
|
|
2259
|
+
*/
|
|
2260
|
+
"io.drawing.scaleParts": {
|
|
2261
|
+
/** The parts to scale; they stay as they are and scaled copies come back. */
|
|
2262
|
+
parts: unknown[] | PipelineRef;
|
|
2263
|
+
/**
|
|
2264
|
+
* What every length is multiplied by: 2 doubles the drawing, 25.4 turns inches into
|
|
2265
|
+
* millimetres.
|
|
2266
|
+
*/
|
|
2267
|
+
factor?: number | PipelineRef;
|
|
2268
|
+
};
|
|
2269
|
+
/**
|
|
2270
|
+
* Makes a B-spline or NURBS curve of a drawing path from its control points and degree, with
|
|
2271
|
+
* its knots and weights when they are given.
|
|
2272
|
+
*/
|
|
2273
|
+
"io.drawing.splineSegment": {
|
|
2274
|
+
/**
|
|
2275
|
+
* The control points the curve is pulled towards; there must be more of them than the
|
|
2276
|
+
* degree.
|
|
2277
|
+
*/
|
|
2278
|
+
controlPoints: [number, number, number][] | PipelineRef;
|
|
2279
|
+
/** The degree of the curve: 1 draws the control polygon, 2 and 3 smooth curves. */
|
|
2280
|
+
degree?: number | PipelineRef;
|
|
2281
|
+
/**
|
|
2282
|
+
* Without `knots`, whether the curve wraps around its control points into a smooth closed
|
|
2283
|
+
* loop. With `knots`, the knots decide, and this is ignored.
|
|
2284
|
+
*/
|
|
2285
|
+
closed?: boolean | PipelineRef;
|
|
2286
|
+
/**
|
|
2287
|
+
* The full knot vector: never decreasing, one more value than the control points and the
|
|
2288
|
+
* degree together. Left out, the curve starts and ends at its end points.
|
|
2289
|
+
*/
|
|
2290
|
+
knots?: number[] | PipelineRef;
|
|
2291
|
+
/**
|
|
2292
|
+
* One positive weight per control point, which makes the curve rational (a NURBS curve). Leave
|
|
2293
|
+
* it out for a weight of 1 everywhere.
|
|
2294
|
+
*/
|
|
2295
|
+
weights?: number[] | PipelineRef;
|
|
2296
|
+
};
|
|
2297
|
+
/**
|
|
2298
|
+
* Converts an SVG file into a DXF file, reading it as `io.svg.svgRead` does and writing it as
|
|
2299
|
+
* `io.dxf.dxfCreate` does.
|
|
2300
|
+
*
|
|
2301
|
+
* Inkscape layers, stroke colors and dash patterns become DXF layers, colors and line types, and
|
|
2302
|
+
* curves stay exact. With `unit` the drawing is read at true size and the DXF states that unit. A
|
|
2303
|
+
* drawing too large to write throws.
|
|
2304
|
+
*/
|
|
2305
|
+
"io.drawing.svgToDxf": {
|
|
2306
|
+
/** The whole text of an SVG file. */
|
|
2307
|
+
svg: string | PipelineRef;
|
|
2308
|
+
/**
|
|
2309
|
+
* The unit to read the drawing in at true size, also stated in the DXF (`AC1015` only). Left
|
|
2310
|
+
* out, user units are written and no unit is stated.
|
|
2311
|
+
*/
|
|
2312
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
2313
|
+
/** When true, elements hidden by `display` or `visibility` are written as well. */
|
|
2314
|
+
includeInvisible?: boolean | PipelineRef;
|
|
2315
|
+
/**
|
|
2316
|
+
* How colors are written: `aci`, the nearest of AutoCAD's 255 index colors, or `truecolor`,
|
|
2317
|
+
* the exact color beside that index (`AC1015` only; `AC1009` writes the index).
|
|
2318
|
+
*/
|
|
2319
|
+
colorFormat?: unknown | PipelineRef;
|
|
2320
|
+
/**
|
|
2321
|
+
* The DXF version: `AC1015` (AutoCAD 2000), which keeps splines and ellipses exact, or `AC1009`
|
|
2322
|
+
* (AutoCAD R12) for old software, where they become polylines within `curveTolerance`.
|
|
2323
|
+
*/
|
|
2324
|
+
acadVersion?: unknown | PipelineRef;
|
|
2325
|
+
/**
|
|
2326
|
+
* The largest distance, in drawing units, between a curve and the polyline that stands in for
|
|
2327
|
+
* it where the version cannot hold the curve exactly.
|
|
2328
|
+
*/
|
|
2329
|
+
curveTolerance?: number | PipelineRef;
|
|
2330
|
+
};
|
|
2331
|
+
/**
|
|
2332
|
+
* Makes a line of text for a drawing part's `texts`, in the single-line stroke font.
|
|
2333
|
+
*
|
|
2334
|
+
* The text is placed by a point on its baseline; `anchor` says whether that point is its start,
|
|
2335
|
+
* middle or end, `rotation` turns it and `widthFactor` narrows or widens its letters.
|
|
2336
|
+
*/
|
|
2337
|
+
"io.drawing.text": {
|
|
2338
|
+
/**
|
|
2339
|
+
* The text, one line of it: a control character, such as a line break, a tab or U+0085, is
|
|
2340
|
+
* refused; a line separator is drawn as a question mark.
|
|
2341
|
+
*/
|
|
2342
|
+
text: string | PipelineRef;
|
|
2343
|
+
/** The point on the baseline the text is placed by; `anchor` says which point of the line it is. */
|
|
2344
|
+
position: [number, number, number] | PipelineRef;
|
|
2345
|
+
/** The height of a capital letter, in drawing units. */
|
|
2346
|
+
height?: number | PipelineRef;
|
|
2347
|
+
/** Which point of the baseline `position` is: where the text starts, its middle or its end. */
|
|
2348
|
+
anchor?: unknown | PipelineRef;
|
|
2349
|
+
/** The angle of the baseline in degrees, counterclockwise from the X axis. */
|
|
2350
|
+
rotation?: number | PipelineRef;
|
|
2351
|
+
/**
|
|
2352
|
+
* How wide the letters are drawn against their natural width: below 1 narrows a text to fit a
|
|
2353
|
+
* cell, above 1 widens it.
|
|
2354
|
+
*/
|
|
2355
|
+
widthFactor?: number | PipelineRef;
|
|
2356
|
+
};
|
|
2357
|
+
/**
|
|
2358
|
+
* Measures a drawing text: its length along the baseline, and how far the font's ink reaches
|
|
2359
|
+
* above and below it.
|
|
2360
|
+
*
|
|
2361
|
+
* The width is what `io.svg.svgCreate` draws and `io.dxf.dxfCreate` fits the text to; the
|
|
2362
|
+
* position is not needed to measure it. A text that is not one line throws.
|
|
2363
|
+
* Example: 'I' at height 21 -> width 8, above 25, below 7
|
|
2364
|
+
*/
|
|
2365
|
+
"io.drawing.textSize": {
|
|
2366
|
+
/**
|
|
2367
|
+
* The text, one line of it: a control character, such as a line break, a tab or U+0085, is
|
|
2368
|
+
* refused; a line separator is drawn as a question mark.
|
|
2369
|
+
*/
|
|
2370
|
+
text: string | PipelineRef;
|
|
2371
|
+
/** The point on the baseline the text is placed by; `anchor` says which point of the line it is. */
|
|
2372
|
+
position: [number, number, number] | PipelineRef;
|
|
2373
|
+
/** The height of a capital letter, in drawing units. */
|
|
2374
|
+
height?: number | PipelineRef;
|
|
2375
|
+
/** Which point of the baseline `position` is: where the text starts, its middle or its end. */
|
|
2376
|
+
anchor?: unknown | PipelineRef;
|
|
2377
|
+
/** The angle of the baseline in degrees, counterclockwise from the X axis. */
|
|
2378
|
+
rotation?: number | PipelineRef;
|
|
2379
|
+
/**
|
|
2380
|
+
* How wide the letters are drawn against their natural width: below 1 narrows a text to fit a
|
|
2381
|
+
* cell, above 1 widens it.
|
|
2382
|
+
*/
|
|
2383
|
+
widthFactor?: number | PipelineRef;
|
|
2384
|
+
};
|
|
2385
|
+
/**
|
|
2386
|
+
* Draws a drawing text as the strokes of its letters, each a list of points in the drawing's
|
|
2387
|
+
* coordinates, placed, turned and narrowed as the text says.
|
|
2388
|
+
*
|
|
2389
|
+
* These are the strokes `io.svg.svgCreate` writes. A text that is not one line throws.
|
|
2390
|
+
* Example: 'I' at height 21 from [10, 20] -> one stroke, [[14, 41, 0], [14, 20, 0]]
|
|
2391
|
+
*/
|
|
2392
|
+
"io.drawing.textStrokes": {
|
|
2393
|
+
/**
|
|
2394
|
+
* The text, one line of it: a control character, such as a line break, a tab or U+0085, is
|
|
2395
|
+
* refused; a line separator is drawn as a question mark.
|
|
2396
|
+
*/
|
|
2397
|
+
text: string | PipelineRef;
|
|
2398
|
+
/** The point on the baseline the text is placed by; `anchor` says which point of the line it is. */
|
|
2399
|
+
position: [number, number, number] | PipelineRef;
|
|
2400
|
+
/** The height of a capital letter, in drawing units. */
|
|
2401
|
+
height?: number | PipelineRef;
|
|
2402
|
+
/** Which point of the baseline `position` is: where the text starts, its middle or its end. */
|
|
2403
|
+
anchor?: unknown | PipelineRef;
|
|
2404
|
+
/** The angle of the baseline in degrees, counterclockwise from the X axis. */
|
|
2405
|
+
rotation?: number | PipelineRef;
|
|
2406
|
+
/**
|
|
2407
|
+
* How wide the letters are drawn against their natural width: below 1 narrows a text to fit a
|
|
2408
|
+
* cell, above 1 widens it.
|
|
2409
|
+
*/
|
|
2410
|
+
widthFactor?: number | PipelineRef;
|
|
2411
|
+
};
|
|
2412
|
+
/** Makes a circular arc for a drawing, under its former DXF name. */
|
|
2413
|
+
"io.dxf.arcSegment": {
|
|
2414
|
+
/** The center of the arc's circle. */
|
|
2415
|
+
center: [number, number, number] | PipelineRef;
|
|
2416
|
+
/** Distance from the center to the arc, in drawing units. */
|
|
2417
|
+
radius: number | PipelineRef;
|
|
2418
|
+
/**
|
|
2419
|
+
* Where the arc starts, in degrees counterclockwise from the X axis (the X axis CAD programs
|
|
2420
|
+
* derive from the `normal` when one is given).
|
|
2421
|
+
*/
|
|
2422
|
+
startAngle: number | PipelineRef;
|
|
2423
|
+
/**
|
|
2424
|
+
* Where the arc ends, in degrees; the arc runs counterclockwise from the start, through 0
|
|
2425
|
+
* when the end is below the start.
|
|
2426
|
+
*/
|
|
2427
|
+
endAngle: number | PipelineRef;
|
|
2428
|
+
/**
|
|
2429
|
+
* The direction the arc's plane faces, counterclockwise seen from its tip. Leave it out for an
|
|
2430
|
+
* arc in the XY plane facing +Z.
|
|
2431
|
+
*/
|
|
2432
|
+
normal?: [number, number, number] | PipelineRef;
|
|
2433
|
+
};
|
|
2434
|
+
/** Makes a whole circle for a drawing, under its former DXF name. */
|
|
2435
|
+
"io.dxf.circleSegment": {
|
|
2436
|
+
/** Where the circle's center lies; without a Z it lies at Z 0. */
|
|
2437
|
+
center: [number, number, number] | PipelineRef;
|
|
2438
|
+
/** Distance from the center to the circle, in drawing units. */
|
|
2439
|
+
radius: number | PipelineRef;
|
|
2440
|
+
/** The direction the circle's plane faces. Leave it out for a circle in the XY plane. */
|
|
2441
|
+
normal?: [number, number, number] | PipelineRef;
|
|
2442
|
+
};
|
|
2443
|
+
/**
|
|
2444
|
+
* Writes a DXF file from path parts, each on its layer with its color and line type.
|
|
2445
|
+
*
|
|
2446
|
+
* `AC1015` keeps every curve exact. `AC1009` (R12) writes splines and ellipses as polylines
|
|
2447
|
+
* within `curveTolerance`, never finer than a millionth of the drawing. Points off one Z make a
|
|
2448
|
+
* 3D polyline; a drawing too large to write throws.
|
|
2449
|
+
*/
|
|
2450
|
+
"io.dxf.dxfCreate": {
|
|
2451
|
+
/** Array of path parts, each containing paths with segments */
|
|
2452
|
+
dxfPathsParts: unknown[] | PipelineRef;
|
|
2453
|
+
/**
|
|
2454
|
+
* How colors are written: `aci`, the nearest of AutoCAD's 255 index colors, or `truecolor`,
|
|
2455
|
+
* the exact color beside that index (`AC1015` only; `AC1009` writes the index).
|
|
2456
|
+
*/
|
|
2457
|
+
colorFormat?: unknown | PipelineRef;
|
|
2458
|
+
/**
|
|
2459
|
+
* The DXF version: `AC1015` (AutoCAD 2000), which keeps splines and ellipses exact, or `AC1009`
|
|
2460
|
+
* (AutoCAD R12) for old software, where they become polylines within `curveTolerance`.
|
|
2461
|
+
*/
|
|
2462
|
+
acadVersion?: unknown | PipelineRef;
|
|
2463
|
+
/**
|
|
2464
|
+
* The unit the drawing is in, written into its header so CAD programs open it at true size;
|
|
2465
|
+
* `AC1015` only. Left out, no unit is stated.
|
|
2466
|
+
*/
|
|
2467
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
2468
|
+
/**
|
|
2469
|
+
* The largest distance, in drawing units, between a curve and the polyline that stands in for
|
|
2470
|
+
* it where the version cannot hold the curve exactly.
|
|
2471
|
+
*/
|
|
2472
|
+
curveTolerance?: number | PipelineRef;
|
|
2473
|
+
/**
|
|
2474
|
+
* The length of one unit of a dash pattern, in drawing units: `hidden` is 2 units of dash
|
|
2475
|
+
* and 1 of gap. Left out, a two-hundredth of the drawing's size.
|
|
2476
|
+
*/
|
|
2477
|
+
lineTypeScale?: number | PipelineRef;
|
|
2478
|
+
};
|
|
2479
|
+
/**
|
|
2480
|
+
* Reads a DXF file into path parts by layer, color and line type, the model `dxfCreate` writes.
|
|
2481
|
+
*
|
|
2482
|
+
* Lines, arcs, circles, ellipses, polylines and splines are read exactly, block inserts
|
|
2483
|
+
* expanded, with single-line texts and hatches. Multi-line text and dimensions are named in
|
|
2484
|
+
* `warnings`; `occt.io.loadDxf` reads splines given only by fit points.
|
|
2485
|
+
*/
|
|
2486
|
+
"io.dxf.dxfRead": {
|
|
2487
|
+
/**
|
|
2488
|
+
* An ASCII DXF file from R12 on, as text or bytes; older bytes not in UTF-8 are read in the
|
|
2489
|
+
* header's code page, or as Windows-1252.
|
|
2490
|
+
*/
|
|
2491
|
+
dxf: unknown | PipelineRef;
|
|
2492
|
+
/** When true, layers the file has switched off or frozen are read as well. */
|
|
2493
|
+
includeHiddenLayers?: boolean | PipelineRef;
|
|
2494
|
+
};
|
|
2495
|
+
/** Makes an ellipse or an arc of one for a drawing, under its former DXF name. */
|
|
2496
|
+
"io.dxf.ellipseSegment": {
|
|
2497
|
+
/** Where the ellipse's center lies; without a Z it lies at Z 0. */
|
|
2498
|
+
center: [number, number, number] | PipelineRef;
|
|
2499
|
+
/**
|
|
2500
|
+
* The vector from the center to one end of the major axis; its length is the major radius,
|
|
2501
|
+
* in drawing units.
|
|
2502
|
+
*/
|
|
2503
|
+
majorAxis: [number, number, number] | PipelineRef;
|
|
2504
|
+
/** The minor radius divided by the major radius. */
|
|
2505
|
+
ratio: number | PipelineRef;
|
|
2506
|
+
/**
|
|
2507
|
+
* Where the arc starts, as the ellipse's parameter t in radians (the point center +
|
|
2508
|
+
* cos(t) `majorAxis` + sin(t) minor axis), the angle only when `ratio` is 1.
|
|
2509
|
+
*/
|
|
2510
|
+
startParameter?: number | PipelineRef;
|
|
2511
|
+
/**
|
|
2512
|
+
* Where the arc ends, as the same parameter in radians; the arc runs counterclockwise from the
|
|
2513
|
+
* start, through 0 when the end is below the start.
|
|
2514
|
+
*/
|
|
2515
|
+
endParameter?: number | PipelineRef;
|
|
2516
|
+
/**
|
|
2517
|
+
* The direction the ellipse's plane faces, perpendicular to `majorAxis`. Leave it out for an
|
|
2518
|
+
* ellipse in the XY plane facing +Z.
|
|
2519
|
+
*/
|
|
2520
|
+
normal?: [number, number, number] | PipelineRef;
|
|
2521
|
+
};
|
|
2522
|
+
/** Makes a straight segment for a drawing, under its former DXF name. */
|
|
2523
|
+
"io.dxf.lineSegment": {
|
|
2524
|
+
/** Where the line starts. */
|
|
2525
|
+
start: [number, number, number] | PipelineRef;
|
|
2526
|
+
/** Where the line ends. */
|
|
2527
|
+
end: [number, number, number] | PipelineRef;
|
|
2528
|
+
};
|
|
2529
|
+
/** Makes a path joined from segments for a drawing, under its former DXF name. */
|
|
2530
|
+
"io.dxf.path": {
|
|
2531
|
+
/**
|
|
2532
|
+
* The segments of the path, in order; where one ends at the next one's start, SVG draws them
|
|
2533
|
+
* as one stroke.
|
|
2534
|
+
*/
|
|
2535
|
+
segments: unknown[] | PipelineRef;
|
|
2536
|
+
};
|
|
2537
|
+
/** Makes a part of a drawing on one layer for a drawing, under its former DXF name. */
|
|
2538
|
+
"io.dxf.pathsPart": {
|
|
2539
|
+
/** The paths of the part, each a run of segments. */
|
|
2540
|
+
paths: unknown[] | PipelineRef;
|
|
2541
|
+
/**
|
|
2542
|
+
* The layer the paths go on. Parts may share a layer, which takes the first part's color and
|
|
2543
|
+
* line type; every part's paths keep their own.
|
|
2544
|
+
*/
|
|
2545
|
+
layer?: string | PipelineRef;
|
|
2546
|
+
/** The color of every path in the part, as a hex string such as `#000000`. */
|
|
2547
|
+
color?: unknown | PipelineRef;
|
|
2548
|
+
/** Whether the lines are whole or dashed, such as `hidden` for edges a view cannot see. */
|
|
2549
|
+
lineType?: "continuous" | "dashed" | "hidden" | "center" | "dotted" | PipelineRef;
|
|
2550
|
+
/**
|
|
2551
|
+
* How wide the part's lines and text strokes are, in drawing units. Left out, the writer's own
|
|
2552
|
+
* width is used: the drawing's `strokeWidth` in SVG, the layer's in DXF.
|
|
2553
|
+
*/
|
|
2554
|
+
lineWeight?: number | PipelineRef;
|
|
2555
|
+
/** Lines of text on the part's layer, in its color. */
|
|
2556
|
+
texts?: unknown[] | PipelineRef;
|
|
2557
|
+
/** Hatched regions on the part's layer, in its color. */
|
|
2558
|
+
hatches?: unknown[] | PipelineRef;
|
|
2559
|
+
};
|
|
2560
|
+
/** Makes connected straight segments for a drawing, under its former DXF name. */
|
|
2561
|
+
"io.dxf.polylineSegment": {
|
|
2562
|
+
/**
|
|
2563
|
+
* The vertices, in order. A last point equal to the first closes the polyline as `closed`
|
|
2564
|
+
* does.
|
|
2565
|
+
*/
|
|
2566
|
+
points: [number, number, number][] | PipelineRef;
|
|
2567
|
+
/** Whether a segment joins the last vertex back to the first. */
|
|
2568
|
+
closed?: boolean | PipelineRef;
|
|
2569
|
+
/**
|
|
2570
|
+
* One per vertex, bending the segment after it into an arc: the tangent of a quarter of its
|
|
2571
|
+
* turn, 0 for straight, positive counterclockwise. Left out, every segment is straight.
|
|
2572
|
+
*/
|
|
2573
|
+
bulges?: number[] | PipelineRef;
|
|
2574
|
+
};
|
|
2575
|
+
/** Makes a B-spline or NURBS curve for a drawing, under its former DXF name. */
|
|
2576
|
+
"io.dxf.splineSegment": {
|
|
2577
|
+
/**
|
|
2578
|
+
* The control points the curve is pulled towards; there must be more of them than the
|
|
2579
|
+
* degree.
|
|
2580
|
+
*/
|
|
2581
|
+
controlPoints: [number, number, number][] | PipelineRef;
|
|
2582
|
+
/** The degree of the curve: 1 draws the control polygon, 2 and 3 smooth curves. */
|
|
2583
|
+
degree?: number | PipelineRef;
|
|
2584
|
+
/**
|
|
2585
|
+
* Without `knots`, whether the curve wraps around its control points into a smooth closed
|
|
2586
|
+
* loop. With `knots`, the knots decide, and this is ignored.
|
|
2587
|
+
*/
|
|
2588
|
+
closed?: boolean | PipelineRef;
|
|
2589
|
+
/**
|
|
2590
|
+
* The full knot vector: never decreasing, one more value than the control points and the
|
|
2591
|
+
* degree together. Left out, the curve starts and ends at its end points.
|
|
2592
|
+
*/
|
|
2593
|
+
knots?: number[] | PipelineRef;
|
|
2594
|
+
/**
|
|
2595
|
+
* One positive weight per control point, which makes the curve rational (a NURBS curve). Leave
|
|
2596
|
+
* it out for a weight of 1 everywhere.
|
|
2597
|
+
*/
|
|
2598
|
+
weights?: number[] | PipelineRef;
|
|
2599
|
+
};
|
|
2600
|
+
/**
|
|
2601
|
+
* Writes one drawing path as SVG path data, the text of a `path` element's `d` attribute.
|
|
2602
|
+
*
|
|
2603
|
+
* Segments that meet are drawn as one stroke, reversed where a segment ends where the stroke is,
|
|
2604
|
+
* and a stroke that returns to its start is closed. Curves stay exact as in `svgCreate`, or with
|
|
2605
|
+
* `cubicsOnly` become cubic Beziers within `tolerance`.
|
|
2606
|
+
*/
|
|
2607
|
+
"io.svg.pathData": {
|
|
2608
|
+
/** The path to write as SVG path data. */
|
|
2609
|
+
path: unknown | PipelineRef;
|
|
2610
|
+
/**
|
|
2611
|
+
* Whether Y is negated, as an SVG file needs (its Y runs down); leave it off for data drawn
|
|
2612
|
+
* inside a group that flips Y itself.
|
|
2613
|
+
*/
|
|
2614
|
+
flipY?: boolean | PipelineRef;
|
|
2615
|
+
/**
|
|
2616
|
+
* The largest distance, in drawing units, between a curve SVG cannot draw exactly and the
|
|
2617
|
+
* cubic curves that stand in for it.
|
|
2618
|
+
*/
|
|
2619
|
+
tolerance?: number | PipelineRef;
|
|
2620
|
+
/**
|
|
2621
|
+
* When true, every curve is written as cubic Beziers (`C`), arcs within `tolerance`, for
|
|
2622
|
+
* renderers that draw only lines and cubics.
|
|
2623
|
+
*/
|
|
2624
|
+
cubicsOnly?: boolean | PipelineRef;
|
|
2625
|
+
};
|
|
2626
|
+
/**
|
|
2627
|
+
* Writes an SVG file from path parts, each layer an Inkscape layer.
|
|
2628
|
+
*
|
|
2629
|
+
* Arcs, circles, ellipses and bulges stay exact arcs, unweighted splines up to degree 3 exact
|
|
2630
|
+
* Beziers, others cubics within `tolerance`. Texts become letter strokes, hatches patterned
|
|
2631
|
+
* regions. Y points up, Z is dropped and `unit` gives the true size. A drawing too large to
|
|
2632
|
+
* write throws.
|
|
2633
|
+
*/
|
|
2634
|
+
"io.svg.svgCreate": {
|
|
2635
|
+
/** The parts of the drawing; each layer becomes a group that Inkscape reads as a layer. */
|
|
2636
|
+
parts: unknown[] | PipelineRef;
|
|
2637
|
+
/**
|
|
2638
|
+
* The unit the drawing is in, which gives the file its true width and height. Left out, the
|
|
2639
|
+
* file states no size and viewers fit it to the window.
|
|
2640
|
+
*/
|
|
2641
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
2642
|
+
/**
|
|
2643
|
+
* How wide the lines are, in drawing units. Left out, a five-hundredth of the drawing's larger
|
|
2644
|
+
* side.
|
|
2645
|
+
*/
|
|
2646
|
+
strokeWidth?: number | PipelineRef;
|
|
2647
|
+
/**
|
|
2648
|
+
* The empty border around the drawing, in drawing units. Left out, a fortieth of the
|
|
2649
|
+
* drawing's larger side.
|
|
2650
|
+
*/
|
|
2651
|
+
margin?: number | PipelineRef;
|
|
2652
|
+
/**
|
|
2653
|
+
* The largest distance, in drawing units, between a curve SVG cannot draw exactly (a rational
|
|
2654
|
+
* or higher degree spline) and the cubic curves that stand in for it.
|
|
2655
|
+
*/
|
|
2656
|
+
tolerance?: number | PipelineRef;
|
|
2657
|
+
/**
|
|
2658
|
+
* The length of one unit of a dash pattern, in drawing units: `hidden` is 2 units of dash
|
|
2659
|
+
* and 1 of gap. Left out, a two-hundredth of the drawing's size.
|
|
2660
|
+
*/
|
|
2661
|
+
lineTypeScale?: number | PipelineRef;
|
|
2662
|
+
};
|
|
2663
|
+
/**
|
|
2664
|
+
* Reads an SVG file into path parts by layer, color and line type.
|
|
2665
|
+
*
|
|
2666
|
+
* Lines, arcs and Bezier curves are read exactly, transforms applied, Y up. Inkscape
|
|
2667
|
+
* layers are layers, each stroke color (else fill) a color, each dash pattern a line type. Text
|
|
2668
|
+
* and images are left out, named in `warnings`; `svgCreate`'s texts and hatches return as paths.
|
|
2669
|
+
*/
|
|
2670
|
+
"io.svg.svgRead": {
|
|
2671
|
+
/** The whole text of an SVG file. */
|
|
2672
|
+
svg: string | PipelineRef;
|
|
2673
|
+
/**
|
|
2674
|
+
* The unit to read the drawing in at its true size, with the page's top left corner at the
|
|
2675
|
+
* origin. Left out, coordinates stay in the file's own user units.
|
|
2676
|
+
*/
|
|
2677
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
2678
|
+
/** When true, elements hidden by `display` or `visibility` are read as well. */
|
|
2679
|
+
includeInvisible?: boolean | PipelineRef;
|
|
2680
|
+
};
|
|
1815
2681
|
/**
|
|
1816
2682
|
* Keeps only the volume or area that all the inputs share, dropping everything else.
|
|
1817
2683
|
*
|
|
@@ -3077,6 +3943,18 @@ export interface OperationParams {
|
|
|
3077
3943
|
/** The second point of the line, where it finishes; the direction runs from start to end. */
|
|
3078
3944
|
end: [number, number, number] | PipelineRef;
|
|
3079
3945
|
};
|
|
3946
|
+
/**
|
|
3947
|
+
* Measures how far a point lies from a line, to the nearest point between its start and end.
|
|
3948
|
+
*
|
|
3949
|
+
* A point beside the line is measured square to it, and one past either end to that end. A line
|
|
3950
|
+
* whose ends meet is measured to that one point.
|
|
3951
|
+
*/
|
|
3952
|
+
"line.distanceToPoint": {
|
|
3953
|
+
/** The line to measure to; nothing past its start or its end counts. */
|
|
3954
|
+
line: unknown | PipelineRef;
|
|
3955
|
+
/** The point to measure from. */
|
|
3956
|
+
point: [number, number, number] | PipelineRef;
|
|
3957
|
+
};
|
|
3080
3958
|
/**
|
|
3081
3959
|
* Reads the end point of a line.
|
|
3082
3960
|
*
|
|
@@ -5312,9 +6190,9 @@ export interface OperationParams {
|
|
|
5312
6190
|
/**
|
|
5313
6191
|
* Builds each root of a recipe as a solid placed by its matrix, in root order.
|
|
5314
6192
|
*
|
|
5315
|
-
* Shared nodes are built once. An invalid recipe throws; a root the kernel cannot build
|
|
5316
|
-
*
|
|
5317
|
-
*
|
|
6193
|
+
* Shared nodes are built once. An invalid recipe throws; a root the kernel cannot build throws
|
|
6194
|
+
* unless `emptyWhenFailed` is set. A cut ending within `tolerance` of a side of the bounding box,
|
|
6195
|
+
* or of a face its end lies wholly on, goes through.
|
|
5318
6196
|
*/
|
|
5319
6197
|
"manifold.recipes.build": {
|
|
5320
6198
|
/**
|
|
@@ -5328,8 +6206,13 @@ export interface OperationParams {
|
|
|
5328
6206
|
*/
|
|
5329
6207
|
circularSegments?: number | PipelineRef;
|
|
5330
6208
|
/**
|
|
5331
|
-
*
|
|
5332
|
-
*
|
|
6209
|
+
* `zUpToYUp` turns each solid a quarter turn about X so the recipe's Z points along Y, and
|
|
6210
|
+
* `(x, y, z)` becomes `(x, z, -y)`; `keep` leaves them. `yUpToZUp` is refused.
|
|
6211
|
+
*/
|
|
6212
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
6213
|
+
/**
|
|
6214
|
+
* When true, the solids turn as `upAxis` `zUpToYUp` does; false, its old default, decides nothing.
|
|
6215
|
+
* True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
5333
6216
|
*/
|
|
5334
6217
|
adjustZtoY?: boolean | PipelineRef;
|
|
5335
6218
|
/**
|
|
@@ -5354,8 +6237,13 @@ export interface OperationParams {
|
|
|
5354
6237
|
/** How many flat sides each circle of the recipe is divided into; more is rounder. */
|
|
5355
6238
|
circularSegments?: number | PipelineRef;
|
|
5356
6239
|
/**
|
|
5357
|
-
*
|
|
5358
|
-
* which is up when drawn
|
|
6240
|
+
* Whether the placements turn: `zUpToYUp` turns each a quarter turn about X so the recipe's Z
|
|
6241
|
+
* points along Y, which is up when drawn; `keep` leaves them. `yUpToZUp` is refused.
|
|
6242
|
+
*/
|
|
6243
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
6244
|
+
/**
|
|
6245
|
+
* When true, the placements turn as `upAxis` `zUpToYUp` does; false, its old default, decides
|
|
6246
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
5359
6247
|
*/
|
|
5360
6248
|
adjustZtoY?: boolean | PipelineRef;
|
|
5361
6249
|
/**
|
|
@@ -5385,8 +6273,13 @@ export interface OperationParams {
|
|
|
5385
6273
|
*/
|
|
5386
6274
|
roots?: number[] | PipelineRef;
|
|
5387
6275
|
/**
|
|
5388
|
-
*
|
|
5389
|
-
* `recipes.build` turns its solids
|
|
6276
|
+
* Whether the meshes turn: `zUpToYUp` turns each a quarter turn about X so the recipe's Z points
|
|
6277
|
+
* along Y, as `recipes.build` turns its solids; `keep` leaves them. `yUpToZUp` is refused.
|
|
6278
|
+
*/
|
|
6279
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
6280
|
+
/**
|
|
6281
|
+
* When true, the meshes turn as `upAxis` `zUpToYUp` does; false, its old default, decides nothing.
|
|
6282
|
+
* True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
5390
6283
|
*/
|
|
5391
6284
|
adjustZtoY?: boolean | PipelineRef;
|
|
5392
6285
|
};
|
|
@@ -6343,6 +7236,24 @@ export interface OperationParams {
|
|
|
6343
7236
|
/** The shape to work on; it is not changed. */
|
|
6344
7237
|
shape: unknown | PipelineRef;
|
|
6345
7238
|
};
|
|
7239
|
+
/**
|
|
7240
|
+
* Adds dimensions, datums and tolerances to a document as product manufacturing
|
|
7241
|
+
* information, all of them or, when one is refused, none.
|
|
7242
|
+
*
|
|
7243
|
+
* Each names a part's faces, edges or vertices. It answers the changed document, which
|
|
7244
|
+
* `exportDocumentToStep` writes as STEP AP242 with their pictures; `assembly.query.getDocumentPmi`
|
|
7245
|
+
* lists the items with their labels, as taken here. Calls add up until `removeDocumentPmi`.
|
|
7246
|
+
*/
|
|
7247
|
+
"occt.assembly.manager.addDocumentPmi": {
|
|
7248
|
+
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
7249
|
+
document: unknown | PipelineRef;
|
|
7250
|
+
/** Dimensions to write, each from `createPmiDimension` or given as an object. */
|
|
7251
|
+
dimensions?: unknown[] | PipelineRef;
|
|
7252
|
+
/** The datums to add; each must be referred to by one of `tolerances`. */
|
|
7253
|
+
datums?: unknown[] | PipelineRef;
|
|
7254
|
+
/** The geometric tolerances to add. */
|
|
7255
|
+
tolerances?: unknown[] | PipelineRef;
|
|
7256
|
+
};
|
|
6346
7257
|
/**
|
|
6347
7258
|
* Builds an assembly document from a structure, or applies the structure to an existing
|
|
6348
7259
|
* document.
|
|
@@ -6524,11 +7435,164 @@ export interface OperationParams {
|
|
|
6524
7435
|
/** The new color of the part as `{ r, g, b, a }` from 0 to 1; leave it out to keep the old one. */
|
|
6525
7436
|
colorRgba?: unknown | PipelineRef;
|
|
6526
7437
|
};
|
|
7438
|
+
/**
|
|
7439
|
+
* Describes a datum for `addDocumentPmi`: its letter and the shapes it is taken from.
|
|
7440
|
+
*
|
|
7441
|
+
* A tolerance in the same call must refer to it by letter, as a STEP file keeps a datum only
|
|
7442
|
+
* through its tolerances. A letter names one datum in a document, given again only on its
|
|
7443
|
+
* shapes. Nothing is written until `addDocumentPmi`.
|
|
7444
|
+
*/
|
|
7445
|
+
"occt.assembly.manager.createPmiDatum": {
|
|
7446
|
+
/** The shapes the datum is taken from. */
|
|
7447
|
+
shapeRefs: unknown[] | PipelineRef;
|
|
7448
|
+
/**
|
|
7449
|
+
* One to three capital letters, A to Z, naming one datum in the document; a letter it already
|
|
7450
|
+
* has is given again only on that datum's shapes.
|
|
7451
|
+
*/
|
|
7452
|
+
letter?: string | PipelineRef;
|
|
7453
|
+
/** The name of its `presentation`, when that has none of its own. */
|
|
7454
|
+
name?: string | PipelineRef;
|
|
7455
|
+
/**
|
|
7456
|
+
* A presentation drawn by the caller, or an annotation read back; left out, or with no lines and
|
|
7457
|
+
* no fills, the datum is written without one.
|
|
7458
|
+
*/
|
|
7459
|
+
presentation?: unknown | PipelineRef;
|
|
7460
|
+
};
|
|
7461
|
+
/**
|
|
7462
|
+
* Describes a dimension for `addDocumentPmi`: what it states, its value and tolerance, the
|
|
7463
|
+
* shapes it measures, and where its picture is drawn.
|
|
7464
|
+
*
|
|
7465
|
+
* With `start` and `end` the picture is drawn as `io.drawing.dimensionPicture` draws it, in the
|
|
7466
|
+
* plane `normal` faces, in the part's own axes; a `presentation` replaces it. Nothing is written
|
|
7467
|
+
* until `addDocumentPmi`.
|
|
7468
|
+
*/
|
|
7469
|
+
"occt.assembly.manager.createPmiDimension": {
|
|
7470
|
+
/** The nominal value, in the document's length unit, or in degrees for an `angle`. */
|
|
7471
|
+
value: number | PipelineRef;
|
|
7472
|
+
/** The shapes it measures, or measures from, each a part and one face, edge or vertex of it. */
|
|
7473
|
+
shapeRefs: unknown[] | PipelineRef;
|
|
7474
|
+
/**
|
|
7475
|
+
* What the dimension states; `linearDistance` and `angle` need `otherShapeRefs`, the sizes take
|
|
7476
|
+
* none.
|
|
7477
|
+
*/
|
|
7478
|
+
type?: "Location_LinearDistance" | "Location_Angular" | "Size_Diameter" | "Size_Radius" | "Size_CurveLength" | PipelineRef;
|
|
7479
|
+
/** The shapes a `linearDistance` or an `angle` measures to; an empty list counts as none. */
|
|
7480
|
+
otherShapeRefs?: unknown[] | PipelineRef;
|
|
7481
|
+
/**
|
|
7482
|
+
* How far above the value the measure may lie, in degrees for an `angle`. Left out with
|
|
7483
|
+
* `lowerTolerance`, there is no tolerance; left out alone, it is 0.
|
|
7484
|
+
*/
|
|
7485
|
+
upperTolerance?: number | PipelineRef;
|
|
7486
|
+
/**
|
|
7487
|
+
* How far below the value the measure may lie, as an amount. Left out with `upperTolerance`, the
|
|
7488
|
+
* dimension has no tolerance; left out alone, it is 0.
|
|
7489
|
+
*/
|
|
7490
|
+
lowerTolerance?: number | PipelineRef;
|
|
7491
|
+
/**
|
|
7492
|
+
* The name of the picture `start` and `end` draw, which readers show and `getDocumentAnnotations`
|
|
7493
|
+
* reads back; a `presentation` without a name of its own takes it.
|
|
7494
|
+
*/
|
|
7495
|
+
name?: string | PipelineRef;
|
|
7496
|
+
/**
|
|
7497
|
+
* For `linearDistance` and `curveLength` the first point measured, for the others the center of
|
|
7498
|
+
* the circle or angle; without it and `end`, nothing is drawn.
|
|
7499
|
+
*/
|
|
7500
|
+
start?: [number, number, number] | PipelineRef;
|
|
7501
|
+
/**
|
|
7502
|
+
* For `linearDistance` and `curveLength` the second point measured; for `diameter` and `radius` a
|
|
7503
|
+
* point of the circle; for an `angle` a point on its first arm, where the arc passes.
|
|
7504
|
+
*/
|
|
7505
|
+
end?: [number, number, number] | PipelineRef;
|
|
7506
|
+
/**
|
|
7507
|
+
* The picture's plane normal, facing the reader; an angle turns counterclockwise about it. Left
|
|
7508
|
+
* out, +Z, or -Y when `start` to `end` runs along Z.
|
|
7509
|
+
*/
|
|
7510
|
+
normal?: [number, number, number] | PipelineRef;
|
|
7511
|
+
/**
|
|
7512
|
+
* For `linearDistance`, the direction the distance is measured along; left out, from `start` to
|
|
7513
|
+
* `end`. Other types ignore it.
|
|
7514
|
+
*/
|
|
7515
|
+
direction?: [number, number, number] | PipelineRef;
|
|
7516
|
+
/**
|
|
7517
|
+
* For `linearDistance` and `curveLength`, how far the dimension line stands from `start`, to the
|
|
7518
|
+
* left of the measured direction seen from `normal`; negative puts it right.
|
|
7519
|
+
*/
|
|
7520
|
+
offset?: number | PipelineRef;
|
|
7521
|
+
/** The height of the picture's digits, in the document's length unit; its arrows are as long. */
|
|
7522
|
+
textHeight?: number | PipelineRef;
|
|
7523
|
+
/** How many decimals the picture writes the value with; trailing zeros are dropped. */
|
|
7524
|
+
decimalPlaces?: number | PipelineRef;
|
|
7525
|
+
/**
|
|
7526
|
+
* A presentation drawn by the caller, or an annotation read back, used instead of the picture
|
|
7527
|
+
* `start` and `end` draw; one with no lines and no fills counts as none.
|
|
7528
|
+
*/
|
|
7529
|
+
presentation?: unknown | PipelineRef;
|
|
7530
|
+
};
|
|
7531
|
+
/**
|
|
7532
|
+
* Describes one shape of a part for a dimension, datum or tolerance: the part's label and which
|
|
7533
|
+
* face, edge or vertex of it.
|
|
7534
|
+
*
|
|
7535
|
+
* Faces, edges and vertices count from 0 as `shapes.face.getFace`, `shapes.edge.getEdge` and
|
|
7536
|
+
* `shapes.vertex.getVertices` count them on the part's shape, which `assembly.query.getShapeFromLabel`
|
|
7537
|
+
* reads; `kind` `part` means the whole part.
|
|
7538
|
+
*/
|
|
7539
|
+
"occt.assembly.manager.createPmiShape": {
|
|
7540
|
+
/**
|
|
7541
|
+
* The label of the part, such as `0:1:1:1`, as `assembly.query.getDocumentParts` lists it: a
|
|
7542
|
+
* part, not an assembly or an instance that places one.
|
|
7543
|
+
*/
|
|
7544
|
+
part: string | PipelineRef;
|
|
7545
|
+
/** Whether the whole part is meant, or one face, edge or vertex of it. */
|
|
7546
|
+
kind?: "part" | "face" | "edge" | "vertex" | PipelineRef;
|
|
7547
|
+
/**
|
|
7548
|
+
* Which face, edge or vertex, counting from 0 as `shapes.face.getFace`, `shapes.edge.getEdge`
|
|
7549
|
+
* and `shapes.vertex.getVertices` count them on the part's shape; the whole part ignores it.
|
|
7550
|
+
*/
|
|
7551
|
+
index?: number | PipelineRef;
|
|
7552
|
+
};
|
|
7553
|
+
/**
|
|
7554
|
+
* Describes a geometric tolerance for `addDocumentPmi`: what it controls, its value, the shapes
|
|
7555
|
+
* it applies to and the letters of the datums it refers to, primary first.
|
|
7556
|
+
*
|
|
7557
|
+
* Only `position`, `perpendicularity` and `parallelism` take a diameter zone or a material
|
|
7558
|
+
* condition. Nothing is written until `addDocumentPmi`.
|
|
7559
|
+
*/
|
|
7560
|
+
"occt.assembly.manager.createPmiTolerance": {
|
|
7561
|
+
/** The width of its tolerance zone, in the document's length unit. */
|
|
7562
|
+
value: number | PipelineRef;
|
|
7563
|
+
/** The shapes it applies to. */
|
|
7564
|
+
shapeRefs: unknown[] | PipelineRef;
|
|
7565
|
+
/** What the tolerance controls. */
|
|
7566
|
+
type?: "Flatness" | "CircularityOrRoundness" | "Cylindricity" | "ProfileOfSurface" | "Perpendicularity" | "Parallelism" | "Position" | PipelineRef;
|
|
7567
|
+
/**
|
|
7568
|
+
* The letters of the datums it refers to, primary first, at most three, each given in the same
|
|
7569
|
+
* call, a datum the document has again on its own shapes.
|
|
7570
|
+
*/
|
|
7571
|
+
datumLetters?: unknown[] | PipelineRef;
|
|
7572
|
+
/**
|
|
7573
|
+
* When true, the zone is a cylinder, written with the diameter sign before the value; only
|
|
7574
|
+
* `position`, `perpendicularity` and `parallelism` take it.
|
|
7575
|
+
*/
|
|
7576
|
+
diameterZone?: boolean | PipelineRef;
|
|
7577
|
+
/**
|
|
7578
|
+
* The material condition it applies at; only `position`, `perpendicularity` and `parallelism`
|
|
7579
|
+
* take one other than `none`.
|
|
7580
|
+
*/
|
|
7581
|
+
material?: "none" | "maximum" | "least" | PipelineRef;
|
|
7582
|
+
/** The name of its `presentation`, when that has none of its own. */
|
|
7583
|
+
name?: string | PipelineRef;
|
|
7584
|
+
/**
|
|
7585
|
+
* A presentation drawn by the caller, or an annotation read back; left out, or with no lines and
|
|
7586
|
+
* no fills, the tolerance is written without one.
|
|
7587
|
+
*/
|
|
7588
|
+
presentation?: unknown | PipelineRef;
|
|
7589
|
+
};
|
|
6527
7590
|
/**
|
|
6528
7591
|
* Deletes an assembly document and frees the memory it holds.
|
|
6529
7592
|
*
|
|
6530
7593
|
* A document built with `buildAssemblyDocument` or loaded with `loadStepToDoc` stays in memory
|
|
6531
|
-
* until
|
|
7594
|
+
* until deleted; deleting it deletes the documents its changes made too, and deleting one of
|
|
7595
|
+
* those, such as `setDocLabelColor` answers, frees that one alone, which is made again when read.
|
|
6532
7596
|
*/
|
|
6533
7597
|
"occt.assembly.manager.deleteDocument": {
|
|
6534
7598
|
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
@@ -6553,8 +7617,8 @@ export interface OperationParams {
|
|
|
6553
7617
|
*/
|
|
6554
7618
|
meshAngle?: number | PipelineRef;
|
|
6555
7619
|
/**
|
|
6556
|
-
* When true,
|
|
6557
|
-
*
|
|
7620
|
+
* When true, flat and cylindrical faces get vertices inside them, not only along their edges;
|
|
7621
|
+
* when false, triangles can cut straight across a wide cylindrical face such as a bore.
|
|
6558
7622
|
*/
|
|
6559
7623
|
internalVerticesMode?: boolean | PipelineRef;
|
|
6560
7624
|
/**
|
|
@@ -6606,8 +7670,8 @@ export interface OperationParams {
|
|
|
6606
7670
|
*/
|
|
6607
7671
|
meshAngle?: number | PipelineRef;
|
|
6608
7672
|
/**
|
|
6609
|
-
* When true,
|
|
6610
|
-
*
|
|
7673
|
+
* When true, flat and cylindrical faces get vertices inside them, not only along their edges;
|
|
7674
|
+
* when false, triangles can cut straight across a wide cylindrical face such as a bore.
|
|
6611
7675
|
*/
|
|
6612
7676
|
internalVerticesMode?: boolean | PipelineRef;
|
|
6613
7677
|
/**
|
|
@@ -6710,8 +7774,9 @@ export interface OperationParams {
|
|
|
6710
7774
|
* Writes an assembly document as a STEP file with its hierarchy, names and colors, and returns
|
|
6711
7775
|
* the file's bytes.
|
|
6712
7776
|
*
|
|
6713
|
-
* `
|
|
6714
|
-
*
|
|
7777
|
+
* `compress` writes gzip-compressed STEP-Z. A document holding dimensions, datums or tolerances is
|
|
7778
|
+
* written as STEP AP242 with them and their pictures, those of each part in that part's own
|
|
7779
|
+
* context and units.
|
|
6715
7780
|
*/
|
|
6716
7781
|
"occt.assembly.manager.exportDocumentToStep": {
|
|
6717
7782
|
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
@@ -6774,17 +7839,30 @@ export interface OperationParams {
|
|
|
6774
7839
|
*/
|
|
6775
7840
|
stepData: unknown | PipelineRef;
|
|
6776
7841
|
};
|
|
7842
|
+
/**
|
|
7843
|
+
* Removes every dimension, datum and geometric tolerance from a document, with their pictures and
|
|
7844
|
+
* the saved views that showed only them.
|
|
7845
|
+
*
|
|
7846
|
+
* It answers the document without them, which exports as one that never held PMI and which
|
|
7847
|
+
* `addDocumentPmi` writes into as into a fresh one.
|
|
7848
|
+
*/
|
|
7849
|
+
"occt.assembly.manager.removeDocumentPmi": {
|
|
7850
|
+
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
7851
|
+
document: unknown | PipelineRef;
|
|
7852
|
+
};
|
|
6777
7853
|
/**
|
|
6778
7854
|
* Colors a label of a document, a part, instance or assembly, with red, green, blue and alpha
|
|
6779
7855
|
* from 0 to 1.
|
|
6780
7856
|
*
|
|
6781
|
-
*
|
|
7857
|
+
* It answers the colored document, which an export or a read given it shows, STEP and glTF
|
|
7858
|
+
* included. A label that names no part, instance or assembly of the document is refused;
|
|
7859
|
+
* `setDocLabelColors` colors many labels in one change.
|
|
6782
7860
|
*/
|
|
6783
7861
|
"occt.assembly.manager.setDocLabelColor": {
|
|
6784
|
-
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
6785
|
-
document: unknown | PipelineRef;
|
|
6786
7862
|
/** The label of the part, instance or assembly to color, such as `0:1:1:1`. */
|
|
6787
7863
|
label: string | PipelineRef;
|
|
7864
|
+
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
7865
|
+
document: unknown | PipelineRef;
|
|
6788
7866
|
/** The red channel, from 0 to 1. */
|
|
6789
7867
|
r?: number | PipelineRef;
|
|
6790
7868
|
/** The green channel, from 0 to 1. */
|
|
@@ -6794,15 +7872,61 @@ export interface OperationParams {
|
|
|
6794
7872
|
/** The opacity, from 0 for transparent to 1 for opaque. */
|
|
6795
7873
|
a?: number | PipelineRef;
|
|
6796
7874
|
};
|
|
6797
|
-
/**
|
|
6798
|
-
|
|
7875
|
+
/**
|
|
7876
|
+
* Colors many labels of a document, parts, instances or assemblies, with one color in one
|
|
7877
|
+
* change.
|
|
7878
|
+
*
|
|
7879
|
+
* It answers the colored document as `setDocLabelColor` does, one change for the whole list. A
|
|
7880
|
+
* label that names no part, instance or assembly is refused before any is colored; an empty
|
|
7881
|
+
* list answers the document as it was.
|
|
7882
|
+
*/
|
|
7883
|
+
"occt.assembly.manager.setDocLabelColors": {
|
|
7884
|
+
/**
|
|
7885
|
+
* The labels of the parts, instances or assemblies to color, such as `0:1:1:1`; each takes the
|
|
7886
|
+
* one color.
|
|
7887
|
+
*/
|
|
7888
|
+
labels: unknown[] | PipelineRef;
|
|
6799
7889
|
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
6800
7890
|
document: unknown | PipelineRef;
|
|
7891
|
+
/** The red channel, from 0 to 1. */
|
|
7892
|
+
r?: number | PipelineRef;
|
|
7893
|
+
/** The green channel, from 0 to 1. */
|
|
7894
|
+
g?: number | PipelineRef;
|
|
7895
|
+
/** The blue channel, from 0 to 1. */
|
|
7896
|
+
b?: number | PipelineRef;
|
|
7897
|
+
/** The opacity, from 0 for transparent to 1 for opaque. */
|
|
7898
|
+
a?: number | PipelineRef;
|
|
7899
|
+
};
|
|
7900
|
+
/**
|
|
7901
|
+
* Renames a label of a document, a part, instance or assembly.
|
|
7902
|
+
*
|
|
7903
|
+
* It answers the renamed document, which an export or a read given it shows. A label that names
|
|
7904
|
+
* no part, instance or assembly of the document is refused; `setDocLabelNames` renames many
|
|
7905
|
+
* labels in one change.
|
|
7906
|
+
*/
|
|
7907
|
+
"occt.assembly.manager.setDocLabelName": {
|
|
6801
7908
|
/** The label of the part, instance or assembly to rename, such as `0:1:1:1`. */
|
|
6802
7909
|
label: string | PipelineRef;
|
|
7910
|
+
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
7911
|
+
document: unknown | PipelineRef;
|
|
6803
7912
|
/** The new name written to the label. */
|
|
6804
7913
|
name?: string | PipelineRef;
|
|
6805
7914
|
};
|
|
7915
|
+
/**
|
|
7916
|
+
* Renames many labels of a document, parts, instances or assemblies, in one change.
|
|
7917
|
+
*
|
|
7918
|
+
* `names` holds each label's new name, in the order of `labels`. A label that is no part,
|
|
7919
|
+
* instance or assembly, a name that is not text, a count unlike the labels' or a label given two
|
|
7920
|
+
* names is refused before any is renamed.
|
|
7921
|
+
*/
|
|
7922
|
+
"occt.assembly.manager.setDocLabelNames": {
|
|
7923
|
+
/** The labels of the parts, instances or assemblies to rename, such as `0:1:1:1`. */
|
|
7924
|
+
labels: unknown[] | PipelineRef;
|
|
7925
|
+
/** The new name of each label in `labels`, in the same order; the lists are equally long. */
|
|
7926
|
+
names: unknown[] | PipelineRef;
|
|
7927
|
+
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
7928
|
+
document: unknown | PipelineRef;
|
|
7929
|
+
};
|
|
6806
7930
|
/**
|
|
6807
7931
|
* Reads the whole assembly tree of a document as a flat list of nodes with their parents, so it
|
|
6808
7932
|
* can be walked or shown as a tree.
|
|
@@ -6815,6 +7939,32 @@ export interface OperationParams {
|
|
|
6815
7939
|
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
6816
7940
|
document: unknown | PipelineRef;
|
|
6817
7941
|
};
|
|
7942
|
+
/**
|
|
7943
|
+
* Reads the dimensions, tolerances and datums a document carries as a STEP AP242 file draws
|
|
7944
|
+
* them, and the views the file saved.
|
|
7945
|
+
*
|
|
7946
|
+
* Each has its plane, its lines as polylines and its letters as loops to fill even-odd, in the
|
|
7947
|
+
* document's axes and units or turned Y-up; a part placed twice shows its annotations twice.
|
|
7948
|
+
* Experimental.
|
|
7949
|
+
*/
|
|
7950
|
+
"occt.assembly.query.getDocumentAnnotations": {
|
|
7951
|
+
/**
|
|
7952
|
+
* The document from `loadStepToDoc` or another loader, holding the annotations a STEP AP242
|
|
7953
|
+
* file brings along.
|
|
7954
|
+
*/
|
|
7955
|
+
document: unknown | PipelineRef;
|
|
7956
|
+
/**
|
|
7957
|
+
* How far, in the document's units, a curved annotation line may stray from its curve; smaller
|
|
7958
|
+
* draws circles and arcs with more points, up to about 130 points a circle.
|
|
7959
|
+
*/
|
|
7960
|
+
deflection?: number | PipelineRef;
|
|
7961
|
+
/**
|
|
7962
|
+
* Whether the annotations and saved views turn, as `docToMesh` with the same `upAxis` turns the
|
|
7963
|
+
* parts: `zUpToYUp` from Z-up into Y-up, `yUpToZUp` into Z-up, and `keep` leaves the
|
|
7964
|
+
* document's axes.
|
|
7965
|
+
*/
|
|
7966
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
7967
|
+
};
|
|
6818
7968
|
/**
|
|
6819
7969
|
* Lists every part and sub-assembly in a document with its label, name, type, color and how
|
|
6820
7970
|
* many times it is placed.
|
|
@@ -6826,12 +7976,12 @@ export interface OperationParams {
|
|
|
6826
7976
|
document: unknown | PipelineRef;
|
|
6827
7977
|
};
|
|
6828
7978
|
/**
|
|
6829
|
-
* Reads the product manufacturing information a document holds,
|
|
6830
|
-
*
|
|
7979
|
+
* Reads the product manufacturing information a document holds: dimensions, geometric tolerances
|
|
7980
|
+
* and the datums they refer to, each under its own label.
|
|
6831
7981
|
*
|
|
6832
|
-
* Each entry names its shapes by label, which `getShapeFromLabel` reads
|
|
6833
|
-
*
|
|
6834
|
-
* any gives empty lists.
|
|
7982
|
+
* Each entry names its shapes by label, which `getShapeFromLabel` reads, and in `shapeRefs` as the
|
|
7983
|
+
* part and index `manager.addDocumentPmi` takes. Lengths are in the document's unit, angles in
|
|
7984
|
+
* degrees; a document without any gives empty lists.
|
|
6835
7985
|
*/
|
|
6836
7986
|
"occt.assembly.query.getDocumentPmi": {
|
|
6837
7987
|
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
@@ -7660,8 +8810,13 @@ export interface OperationParams {
|
|
|
7660
8810
|
*/
|
|
7661
8811
|
relativeDeflection?: boolean | PipelineRef;
|
|
7662
8812
|
/**
|
|
7663
|
-
*
|
|
7664
|
-
* up.
|
|
8813
|
+
* `zUpToYUp` turns the mesh from the file's Z-up into Y-up, as `io.loadSTEPorIGES` turns a
|
|
8814
|
+
* shape; `yUpToZUp` makes it Z-up for tools that treat Z as up; `keep` leaves it.
|
|
8815
|
+
*/
|
|
8816
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
8817
|
+
/**
|
|
8818
|
+
* When true, the mesh turns as `upAxis` `yUpToZUp` does; false, its old default, decides nothing.
|
|
8819
|
+
* True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
7665
8820
|
*/
|
|
7666
8821
|
adjustYtoZ?: boolean | PipelineRef;
|
|
7667
8822
|
/**
|
|
@@ -7711,8 +8866,13 @@ export interface OperationParams {
|
|
|
7711
8866
|
*/
|
|
7712
8867
|
relativeDeflection?: boolean | PipelineRef;
|
|
7713
8868
|
/**
|
|
7714
|
-
*
|
|
7715
|
-
* as up.
|
|
8869
|
+
* `zUpToYUp` turns the meshes from the file's Z-up into Y-up, as `io.loadSTEPorIGES` turns a
|
|
8870
|
+
* shape; `yUpToZUp` makes them Z-up for tools that treat Z as up; `keep` leaves them.
|
|
8871
|
+
*/
|
|
8872
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
8873
|
+
/**
|
|
8874
|
+
* When true, the meshes turn as `upAxis` `yUpToZUp` does; false, its old default, decides nothing.
|
|
8875
|
+
* True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
7716
8876
|
*/
|
|
7717
8877
|
adjustYtoZ?: boolean | PipelineRef;
|
|
7718
8878
|
/**
|
|
@@ -9093,17 +10253,23 @@ export interface OperationParams {
|
|
|
9093
10253
|
/**
|
|
9094
10254
|
* Rounds several edges of a shape, each with the same radius profile that changes along it.
|
|
9095
10255
|
*
|
|
9096
|
-
* `
|
|
9097
|
-
*
|
|
10256
|
+
* `radiusList` holds the radius at each `paramsU` position on every edge, read as
|
|
10257
|
+
* `filletEdgeVariableRadius` reads them. The lists must be equally long, or an error is thrown.
|
|
9098
10258
|
*/
|
|
9099
10259
|
"occt.fillets.filletEdgesSameVariableRadius": {
|
|
9100
10260
|
/** The shape the edges belong to. */
|
|
9101
10261
|
shape: unknown | PipelineRef;
|
|
9102
10262
|
/** The edges to round, all with the same radius profile. */
|
|
9103
10263
|
edges: unknown[] | PipelineRef;
|
|
9104
|
-
/**
|
|
10264
|
+
/**
|
|
10265
|
+
* The radius in model units, above 0, at each position in `paramsU`; the lists must have the
|
|
10266
|
+
* same length.
|
|
10267
|
+
*/
|
|
9105
10268
|
radiusList: number[] | PipelineRef;
|
|
9106
|
-
/**
|
|
10269
|
+
/**
|
|
10270
|
+
* Where each radius applies on every edge, read as for `filletEdgeVariableRadius`: a fraction of
|
|
10271
|
+
* each edge's own length from the start of its curve.
|
|
10272
|
+
*/
|
|
9107
10273
|
paramsU: number[] | PipelineRef;
|
|
9108
10274
|
};
|
|
9109
10275
|
/**
|
|
@@ -9115,17 +10281,23 @@ export interface OperationParams {
|
|
|
9115
10281
|
shape: unknown | PipelineRef;
|
|
9116
10282
|
/** The edges to round, all with the same radius profile. */
|
|
9117
10283
|
edges: unknown[] | PipelineRef;
|
|
9118
|
-
/**
|
|
10284
|
+
/**
|
|
10285
|
+
* The radius in model units, above 0, at each position in `paramsU`; the lists must have the
|
|
10286
|
+
* same length.
|
|
10287
|
+
*/
|
|
9119
10288
|
radiusList: number[] | PipelineRef;
|
|
9120
|
-
/**
|
|
10289
|
+
/**
|
|
10290
|
+
* Where each radius applies on every edge, read as for `filletEdgeVariableRadius`: a fraction of
|
|
10291
|
+
* each edge's own length from the start of its curve.
|
|
10292
|
+
*/
|
|
9121
10293
|
paramsU: number[] | PipelineRef;
|
|
9122
10294
|
};
|
|
9123
10295
|
/**
|
|
9124
10296
|
* Rounds several edges of a shape, each with its own radius profile that changes along it.
|
|
9125
10297
|
*
|
|
9126
10298
|
* `radiusLists` and `paramsULists` hold one list per edge, in edge order; within each pair the
|
|
9127
|
-
*
|
|
9128
|
-
*
|
|
10299
|
+
* radii apply at the positions as `filletEdgeVariableRadius` reads them. All three lists must
|
|
10300
|
+
* have the same length, or an error is thrown.
|
|
9129
10301
|
*/
|
|
9130
10302
|
"occt.fillets.filletEdgesVariableRadius": {
|
|
9131
10303
|
/** The shape the edges belong to. */
|
|
@@ -9138,8 +10310,8 @@ export interface OperationParams {
|
|
|
9138
10310
|
*/
|
|
9139
10311
|
radiusLists: unknown[] | PipelineRef;
|
|
9140
10312
|
/**
|
|
9141
|
-
* One list
|
|
9142
|
-
* matching list in `radiusLists`.
|
|
10313
|
+
* One list of positions per edge, each a fraction of that edge's own length as
|
|
10314
|
+
* `filletEdgeVariableRadius` reads it, pairing with the matching list in `radiusLists`.
|
|
9143
10315
|
*/
|
|
9144
10316
|
paramsULists: unknown[] | PipelineRef;
|
|
9145
10317
|
};
|
|
@@ -9158,8 +10330,8 @@ export interface OperationParams {
|
|
|
9158
10330
|
*/
|
|
9159
10331
|
radiusLists: unknown[] | PipelineRef;
|
|
9160
10332
|
/**
|
|
9161
|
-
* One list
|
|
9162
|
-
* matching list in `radiusLists`.
|
|
10333
|
+
* One list of positions per edge, each a fraction of that edge's own length as
|
|
10334
|
+
* `filletEdgeVariableRadius` reads it, pairing with the matching list in `radiusLists`.
|
|
9163
10335
|
*/
|
|
9164
10336
|
paramsULists: unknown[] | PipelineRef;
|
|
9165
10337
|
};
|
|
@@ -9190,18 +10362,24 @@ export interface OperationParams {
|
|
|
9190
10362
|
/**
|
|
9191
10363
|
* Rounds one edge of a shape with a radius that changes along it.
|
|
9192
10364
|
*
|
|
9193
|
-
* `
|
|
9194
|
-
*
|
|
9195
|
-
*
|
|
10365
|
+
* `radiusList` holds the radius at each `paramsU` position, a fraction of the edge's length from
|
|
10366
|
+
* its curve's start, whatever its orientation; between positions it may overshoot. A position
|
|
10367
|
+
* outside 0 to 1, a radius not above 0 or one position with two radii is refused.
|
|
9196
10368
|
*/
|
|
9197
10369
|
"occt.fillets.filletEdgeVariableRadius": {
|
|
9198
10370
|
/** The shape the edge belongs to. */
|
|
9199
10371
|
shape: unknown | PipelineRef;
|
|
9200
10372
|
/** The edge to round with a changing radius. */
|
|
9201
10373
|
edge: unknown | PipelineRef;
|
|
9202
|
-
/**
|
|
10374
|
+
/**
|
|
10375
|
+
* The radius in model units, above 0, at each position in `paramsU`; the lists must have the
|
|
10376
|
+
* same length.
|
|
10377
|
+
*/
|
|
9203
10378
|
radiusList: number[] | PipelineRef;
|
|
9204
|
-
/**
|
|
10379
|
+
/**
|
|
10380
|
+
* Where each radius applies: a fraction of the edge's length from the start of its curve, 0 to 1,
|
|
10381
|
+
* in any order; an end without one takes the nearest radius.
|
|
10382
|
+
*/
|
|
9205
10383
|
paramsU: number[] | PipelineRef;
|
|
9206
10384
|
};
|
|
9207
10385
|
/**
|
|
@@ -9213,9 +10391,15 @@ export interface OperationParams {
|
|
|
9213
10391
|
shape: unknown | PipelineRef;
|
|
9214
10392
|
/** The edge to round with a changing radius. */
|
|
9215
10393
|
edge: unknown | PipelineRef;
|
|
9216
|
-
/**
|
|
10394
|
+
/**
|
|
10395
|
+
* The radius in model units, above 0, at each position in `paramsU`; the lists must have the
|
|
10396
|
+
* same length.
|
|
10397
|
+
*/
|
|
9217
10398
|
radiusList: number[] | PipelineRef;
|
|
9218
|
-
/**
|
|
10399
|
+
/**
|
|
10400
|
+
* Where each radius applies: a fraction of the edge's length from the start of its curve, 0 to 1,
|
|
10401
|
+
* in any order; an end without one takes the nearest radius.
|
|
10402
|
+
*/
|
|
9219
10403
|
paramsU: number[] | PipelineRef;
|
|
9220
10404
|
};
|
|
9221
10405
|
/**
|
|
@@ -9433,8 +10617,8 @@ export interface OperationParams {
|
|
|
9433
10617
|
*/
|
|
9434
10618
|
meshRelative?: boolean | PipelineRef;
|
|
9435
10619
|
/**
|
|
9436
|
-
* When true,
|
|
9437
|
-
*
|
|
10620
|
+
* When true, flat and cylindrical faces get vertices inside them, not only along their edges;
|
|
10621
|
+
* when false, triangles can cut straight across a wide cylindrical face such as a bore.
|
|
9438
10622
|
*/
|
|
9439
10623
|
internalVerticesMode?: boolean | PipelineRef;
|
|
9440
10624
|
/**
|
|
@@ -9461,7 +10645,15 @@ export interface OperationParams {
|
|
|
9461
10645
|
* `mat4` always as a matrix, `trs` always as the three parts.
|
|
9462
10646
|
*/
|
|
9463
10647
|
transformFormat?: "compact" | "mat4" | "trs" | PipelineRef;
|
|
9464
|
-
/**
|
|
10648
|
+
/**
|
|
10649
|
+
* Whether the model turns: `zUpToYUp` turns the file's Z-up into glTF's Y-up, and `keep` keeps
|
|
10650
|
+
* Z up. `yUpToZUp` is refused.
|
|
10651
|
+
*/
|
|
10652
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
10653
|
+
/**
|
|
10654
|
+
* When false, the model keeps its axes as `keep` does; true, its old default, decides nothing.
|
|
10655
|
+
* False wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
10656
|
+
*/
|
|
9465
10657
|
adjustZtoY?: boolean | PipelineRef;
|
|
9466
10658
|
/**
|
|
9467
10659
|
* A factor applied to the whole model, such as 0.001 to turn millimeters into meters; 1 keeps
|
|
@@ -9518,8 +10710,8 @@ export interface OperationParams {
|
|
|
9518
10710
|
*/
|
|
9519
10711
|
meshRelative?: boolean | PipelineRef;
|
|
9520
10712
|
/**
|
|
9521
|
-
* When true,
|
|
9522
|
-
*
|
|
10713
|
+
* When true, flat and cylindrical faces get vertices inside them, not only along their edges;
|
|
10714
|
+
* when false, triangles can cut straight across a wide cylindrical face such as a bore.
|
|
9523
10715
|
*/
|
|
9524
10716
|
internalVerticesMode?: boolean | PipelineRef;
|
|
9525
10717
|
/**
|
|
@@ -9546,7 +10738,15 @@ export interface OperationParams {
|
|
|
9546
10738
|
* `mat4` always as a matrix, `trs` always as the three parts.
|
|
9547
10739
|
*/
|
|
9548
10740
|
transformFormat?: "compact" | "mat4" | "trs" | PipelineRef;
|
|
9549
|
-
/**
|
|
10741
|
+
/**
|
|
10742
|
+
* Whether the model turns: `zUpToYUp` turns the file's Z-up into glTF's Y-up, and `keep` keeps
|
|
10743
|
+
* Z up. `yUpToZUp` is refused.
|
|
10744
|
+
*/
|
|
10745
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
10746
|
+
/**
|
|
10747
|
+
* When false, the model keeps its axes as `keep` does; true, its old default, decides nothing.
|
|
10748
|
+
* False wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
10749
|
+
*/
|
|
9550
10750
|
adjustZtoY?: boolean | PipelineRef;
|
|
9551
10751
|
/**
|
|
9552
10752
|
* A factor applied to the whole model, such as 0.001 to turn millimeters into meters; 1 keeps
|
|
@@ -9605,8 +10805,8 @@ export interface OperationParams {
|
|
|
9605
10805
|
*/
|
|
9606
10806
|
meshRelative?: boolean | PipelineRef;
|
|
9607
10807
|
/**
|
|
9608
|
-
* When true,
|
|
9609
|
-
*
|
|
10808
|
+
* When true, flat and cylindrical faces get vertices inside them, not only along their edges;
|
|
10809
|
+
* when false, triangles can cut straight across a wide cylindrical face such as a bore.
|
|
9610
10810
|
*/
|
|
9611
10811
|
internalVerticesMode?: boolean | PipelineRef;
|
|
9612
10812
|
/**
|
|
@@ -9638,19 +10838,30 @@ export interface OperationParams {
|
|
|
9638
10838
|
dracoUnifiedQuantization?: boolean | PipelineRef;
|
|
9639
10839
|
};
|
|
9640
10840
|
/**
|
|
9641
|
-
* Writes
|
|
10841
|
+
* Writes drawing parts into one DXF file and returns its text.
|
|
9642
10842
|
*
|
|
9643
|
-
* `
|
|
9644
|
-
* AC1009
|
|
9645
|
-
* `
|
|
10843
|
+
* `acadVersion` AC1015 (AutoCAD 2000) keeps every curve exact and can state the drawing's `unit`;
|
|
10844
|
+
* AC1009 (R12) suits old software and writes splines and ellipses as polylines within
|
|
10845
|
+
* `curveTolerance`. `fileName` and `tryDownload` matter only where a browser download can start.
|
|
9646
10846
|
*/
|
|
9647
10847
|
"occt.io.dxfCreate": {
|
|
9648
10848
|
/** The parts from `io.dxfPathsWithLayer`, each with its own layer and color. */
|
|
9649
10849
|
pathsParts: unknown[] | PipelineRef;
|
|
9650
|
-
/**
|
|
10850
|
+
/**
|
|
10851
|
+
* How colors are written: `aci`, the nearest of AutoCAD's 255 indexed colors, or `truecolor`,
|
|
10852
|
+
* the exact color beside that index (`AC1015` only).
|
|
10853
|
+
*/
|
|
9651
10854
|
colorFormat?: "aci" | "truecolor" | PipelineRef;
|
|
9652
|
-
/**
|
|
10855
|
+
/**
|
|
10856
|
+
* The DXF version: `AC1015` (AutoCAD 2000) keeps splines and ellipses exact; `AC1009` (R12), for
|
|
10857
|
+
* old software, writes them as polylines within `curveTolerance`.
|
|
10858
|
+
*/
|
|
9653
10859
|
acadVersion?: "AC1009" | "AC1015" | PipelineRef;
|
|
10860
|
+
/**
|
|
10861
|
+
* The largest distance, in model units, between a curve and the polyline that stands in for it
|
|
10862
|
+
* where the version cannot hold the curve exactly.
|
|
10863
|
+
*/
|
|
10864
|
+
curveTolerance?: number | PipelineRef;
|
|
9654
10865
|
/**
|
|
9655
10866
|
* The unit the drawing is in, written into its header so CAD programs open it at true size;
|
|
9656
10867
|
* `AC1015` only. Left out, no unit is stated.
|
|
@@ -9665,10 +10876,10 @@ export interface OperationParams {
|
|
|
9665
10876
|
tryDownload?: boolean | PipelineRef;
|
|
9666
10877
|
};
|
|
9667
10878
|
/**
|
|
9668
|
-
* Puts
|
|
10879
|
+
* Puts drawing paths on a named layer with a color and a line type, making one part of a drawing.
|
|
9669
10880
|
*
|
|
9670
|
-
* A drawing may hold several parts, each with its own layer and
|
|
9671
|
-
* into one file.
|
|
10881
|
+
* A drawing may hold several parts, each with its own layer, color and line type; `dxfCreate`
|
|
10882
|
+
* writes them into one file.
|
|
9672
10883
|
*/
|
|
9673
10884
|
"occt.io.dxfPathsWithLayer": {
|
|
9674
10885
|
/** The paths from `io.shapeToDxfPaths`. */
|
|
@@ -9677,6 +10888,8 @@ export interface OperationParams {
|
|
|
9677
10888
|
layer?: string | PipelineRef;
|
|
9678
10889
|
/** The color of the paths as a hex string such as `#000000`. */
|
|
9679
10890
|
color?: unknown | PipelineRef;
|
|
10891
|
+
/** Whether the lines are whole or dashed, such as `hidden` for edges a view cannot see. */
|
|
10892
|
+
lineType?: "continuous" | "dashed" | "hidden" | "center" | "dotted" | PipelineRef;
|
|
9680
10893
|
};
|
|
9681
10894
|
/**
|
|
9682
10895
|
* Reads the unit a STEP or IGES file writes its lengths in, without building its geometry.
|
|
@@ -9715,6 +10928,69 @@ export interface OperationParams {
|
|
|
9715
10928
|
/** The binary BREP file's bytes, or a File or Blob that holds them. */
|
|
9716
10929
|
brepData: unknown | PipelineRef;
|
|
9717
10930
|
};
|
|
10931
|
+
/**
|
|
10932
|
+
* Reads a DXF file into one compound of exact wires, fit-point splines interpolated and block
|
|
10933
|
+
* inserts expanded.
|
|
10934
|
+
*
|
|
10935
|
+
* It lies on the ground, Y along Z (-Z under right-handed conventions) and elevations along Y.
|
|
10936
|
+
* Ends within `joinTolerance` join; `makeFaces` makes faces with holes. A very large file is
|
|
10937
|
+
* read up to its limits; `loadDxfStructured` lists what was left out.
|
|
10938
|
+
*/
|
|
10939
|
+
"occt.io.loadDxf": {
|
|
10940
|
+
/**
|
|
10941
|
+
* The DXF file's text, or a File or Blob holding it (ASCII DXF, R12 or later). Older bytes not
|
|
10942
|
+
* in UTF-8 are read in the header's code page, or Windows-1252.
|
|
10943
|
+
*/
|
|
10944
|
+
dxf: unknown | PipelineRef;
|
|
10945
|
+
/**
|
|
10946
|
+
* When true, closed outlines that lie flat in the drawing become faces, an outline inside
|
|
10947
|
+
* another cutting a hole in it as an even-odd fill does; open outlines stay wires.
|
|
10948
|
+
*/
|
|
10949
|
+
makeFaces?: boolean | PipelineRef;
|
|
10950
|
+
/**
|
|
10951
|
+
* How far apart, in file units, two entities' ends may lie and still join into one wire: at most
|
|
10952
|
+
* 0.001 or a hundredth of the drawing's span, whichever is larger.
|
|
10953
|
+
*/
|
|
10954
|
+
joinTolerance?: number | PipelineRef;
|
|
10955
|
+
/** When true, entities on frozen and switched-off layers are read too. */
|
|
10956
|
+
includeHiddenLayers?: boolean | PipelineRef;
|
|
10957
|
+
/**
|
|
10958
|
+
* The unit to give the shapes in, scaled from the unit the file states; a file stating none is
|
|
10959
|
+
* read as drawn. Left out, the numbers stay as drawn.
|
|
10960
|
+
*/
|
|
10961
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
10962
|
+
};
|
|
10963
|
+
/**
|
|
10964
|
+
* Reads a DXF file as `loadDxf` does, into one shape per layer, color and line type, each with
|
|
10965
|
+
* its layer name, color and line type, plus the file's unit, its version and what was left out.
|
|
10966
|
+
*
|
|
10967
|
+
* Use it to treat the layers apart, such as outlines to cut on one layer and lines to engrave on
|
|
10968
|
+
* another.
|
|
10969
|
+
*/
|
|
10970
|
+
"occt.io.loadDxfStructured": {
|
|
10971
|
+
/**
|
|
10972
|
+
* The DXF file's text, or a File or Blob holding it (ASCII DXF, R12 or later). Older bytes not
|
|
10973
|
+
* in UTF-8 are read in the header's code page, or Windows-1252.
|
|
10974
|
+
*/
|
|
10975
|
+
dxf: unknown | PipelineRef;
|
|
10976
|
+
/**
|
|
10977
|
+
* When true, closed outlines that lie flat in the drawing become faces, an outline inside
|
|
10978
|
+
* another cutting a hole in it as an even-odd fill does; open outlines stay wires.
|
|
10979
|
+
*/
|
|
10980
|
+
makeFaces?: boolean | PipelineRef;
|
|
10981
|
+
/**
|
|
10982
|
+
* How far apart, in file units, two entities' ends may lie and still join into one wire: at most
|
|
10983
|
+
* 0.001 or a hundredth of the drawing's span, whichever is larger.
|
|
10984
|
+
*/
|
|
10985
|
+
joinTolerance?: number | PipelineRef;
|
|
10986
|
+
/** When true, entities on frozen and switched-off layers are read too. */
|
|
10987
|
+
includeHiddenLayers?: boolean | PipelineRef;
|
|
10988
|
+
/**
|
|
10989
|
+
* The unit to give the shapes in, scaled from the unit the file states; a file stating none is
|
|
10990
|
+
* read as drawn. Left out, the numbers stay as drawn.
|
|
10991
|
+
*/
|
|
10992
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
10993
|
+
};
|
|
9718
10994
|
/** Loads a STEP or IGES file into an OCCT shape. Pass file content as text (for .step/.stp/.iges/.igs) or ArrayBuffer (for .stpz/.igz). */
|
|
9719
10995
|
"occt.io.loadSTEPorIGES": {
|
|
9720
10996
|
/** File content: string for plain text files (.step, .stp, .iges, .igs), or base64-encoded ArrayBuffer for compressed files (.stpz, .igz). */
|
|
@@ -9731,7 +11007,7 @@ export interface OperationParams {
|
|
|
9731
11007
|
* that carries the whole mesh.
|
|
9732
11008
|
*
|
|
9733
11009
|
* With `asFaces` true the faces share their corners' edges in a compound that
|
|
9734
|
-
* `shapeFix.sewWithReport` can join into a shell. `
|
|
11010
|
+
* `shapeFix.sewWithReport` can join into a shell. `upAxis` `zUpToYUp` turns Z-up into Y-up, and a file
|
|
9735
11011
|
* without triangles is refused.
|
|
9736
11012
|
*/
|
|
9737
11013
|
"occt.io.loadStl": {
|
|
@@ -9745,7 +11021,15 @@ export interface OperationParams {
|
|
|
9745
11021
|
* one face carries the whole mesh, light to draw but not for modelling.
|
|
9746
11022
|
*/
|
|
9747
11023
|
asFaces?: boolean | PipelineRef;
|
|
9748
|
-
/**
|
|
11024
|
+
/**
|
|
11025
|
+
* Whether the shape turns: `zUpToYUp` turns the file's Z-up into this library's Y-up, and `keep`
|
|
11026
|
+
* leaves the file's axes. `yUpToZUp` is refused.
|
|
11027
|
+
*/
|
|
11028
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
11029
|
+
/**
|
|
11030
|
+
* When false, the shape keeps its axes as `keep` does; true, its old default, decides nothing.
|
|
11031
|
+
* False wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
11032
|
+
*/
|
|
9749
11033
|
adjustZtoY?: boolean | PipelineRef;
|
|
9750
11034
|
};
|
|
9751
11035
|
/**
|
|
@@ -9855,13 +11139,99 @@ export interface OperationParams {
|
|
|
9855
11139
|
*/
|
|
9856
11140
|
withTriangulation?: boolean | PipelineRef;
|
|
9857
11141
|
};
|
|
11142
|
+
/**
|
|
11143
|
+
* Draws the edges a view of a shape sees as a DXF drawing, hidden ones on their own layer when
|
|
11144
|
+
* asked, and starts a browser download of the file.
|
|
11145
|
+
*
|
|
11146
|
+
* The drawing shows the view from the frame's normal side, x along its direction, with every
|
|
11147
|
+
* curve exact. `saveShapeDxfAndReturn` gives the text instead.
|
|
11148
|
+
*/
|
|
11149
|
+
"occt.io.saveShapeDxf": {
|
|
11150
|
+
/** The shape to draw. */
|
|
11151
|
+
shape: unknown | PipelineRef;
|
|
11152
|
+
/**
|
|
11153
|
+
* The view, as in `operations.hiddenLines`: the eye sits on the side the normal points to and
|
|
11154
|
+
* looks back along it, and the drawing's x runs along the direction.
|
|
11155
|
+
*/
|
|
11156
|
+
frame: unknown | PipelineRef;
|
|
11157
|
+
/**
|
|
11158
|
+
* When true, the edges other faces cover are drawn too, on the layer `hidden` with the
|
|
11159
|
+
* `HIDDEN` line type.
|
|
11160
|
+
*/
|
|
11161
|
+
drawHidden?: boolean | PipelineRef;
|
|
11162
|
+
/**
|
|
11163
|
+
* How far the view may stray from the shape, in model units: the tolerance of the hidden-line
|
|
11164
|
+
* removal, and of the polylines that stand in for curves in `AC1009`.
|
|
11165
|
+
*/
|
|
11166
|
+
precision?: number | PipelineRef;
|
|
11167
|
+
/**
|
|
11168
|
+
* The unit the shape is modelled in, written into the file so CAD programs open it at true
|
|
11169
|
+
* size; `AC1015` only.
|
|
11170
|
+
*/
|
|
11171
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
11172
|
+
/**
|
|
11173
|
+
* The DXF version: `AC1015` (AutoCAD 2000) keeps every curve exact; `AC1009` (R12) writes
|
|
11174
|
+
* splines and ellipses as polylines.
|
|
11175
|
+
*/
|
|
11176
|
+
acadVersion?: "AC1009" | "AC1015" | PipelineRef;
|
|
11177
|
+
/** The name the downloaded file gets. */
|
|
11178
|
+
fileName?: string | PipelineRef;
|
|
11179
|
+
/**
|
|
11180
|
+
* When true, a browser download of the file is started where that is possible; the kernel
|
|
11181
|
+
* itself only returns the text.
|
|
11182
|
+
*/
|
|
11183
|
+
tryDownload?: boolean | PipelineRef;
|
|
11184
|
+
};
|
|
11185
|
+
/**
|
|
11186
|
+
* Draws the edges a view of a shape sees as DXF, hidden ones on their own layer when asked, and
|
|
11187
|
+
* returns the file's text.
|
|
11188
|
+
*
|
|
11189
|
+
* The view looks from the frame's normal side, x along the frame's direction. Curves stay exact;
|
|
11190
|
+
* hidden edges go on the layer `hidden` with the `HIDDEN` line type.
|
|
11191
|
+
*/
|
|
11192
|
+
"occt.io.saveShapeDxfAndReturn": {
|
|
11193
|
+
/** The shape to draw. */
|
|
11194
|
+
shape: unknown | PipelineRef;
|
|
11195
|
+
/**
|
|
11196
|
+
* The view, as in `operations.hiddenLines`: the eye sits on the side the normal points to and
|
|
11197
|
+
* looks back along it, and the drawing's x runs along the direction.
|
|
11198
|
+
*/
|
|
11199
|
+
frame: unknown | PipelineRef;
|
|
11200
|
+
/**
|
|
11201
|
+
* When true, the edges other faces cover are drawn too, on the layer `hidden` with the
|
|
11202
|
+
* `HIDDEN` line type.
|
|
11203
|
+
*/
|
|
11204
|
+
drawHidden?: boolean | PipelineRef;
|
|
11205
|
+
/**
|
|
11206
|
+
* How far the view may stray from the shape, in model units: the tolerance of the hidden-line
|
|
11207
|
+
* removal, and of the polylines that stand in for curves in `AC1009`.
|
|
11208
|
+
*/
|
|
11209
|
+
precision?: number | PipelineRef;
|
|
11210
|
+
/**
|
|
11211
|
+
* The unit the shape is modelled in, written into the file so CAD programs open it at true
|
|
11212
|
+
* size; `AC1015` only.
|
|
11213
|
+
*/
|
|
11214
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
11215
|
+
/**
|
|
11216
|
+
* The DXF version: `AC1015` (AutoCAD 2000) keeps every curve exact; `AC1009` (R12) writes
|
|
11217
|
+
* splines and ellipses as polylines.
|
|
11218
|
+
*/
|
|
11219
|
+
acadVersion?: "AC1009" | "AC1015" | PipelineRef;
|
|
11220
|
+
/** The name the downloaded file gets. */
|
|
11221
|
+
fileName?: string | PipelineRef;
|
|
11222
|
+
/**
|
|
11223
|
+
* When true, a browser download of the file is started where that is possible; the kernel
|
|
11224
|
+
* itself only returns the text.
|
|
11225
|
+
*/
|
|
11226
|
+
tryDownload?: boolean | PipelineRef;
|
|
11227
|
+
};
|
|
9858
11228
|
/**
|
|
9859
11229
|
* Triangulates a shape, writes it as OBJ, the mesh format most 3D programs read, and starts a
|
|
9860
11230
|
* browser download of the file.
|
|
9861
11231
|
*
|
|
9862
|
-
* `precision` is the meshing tolerance in model units
|
|
9863
|
-
*
|
|
9864
|
-
*
|
|
11232
|
+
* `precision` is the meshing tolerance in model units. With the conventions set the file shows
|
|
11233
|
+
* what the screen shows, Z-up under `yUpToZUp`. The file name may hold no spaces or slashes;
|
|
11234
|
+
* `saveShapeObjAndReturn` gives the text instead.
|
|
9865
11235
|
*/
|
|
9866
11236
|
"occt.io.saveShapeObj": {
|
|
9867
11237
|
/** The shape written to the file. */
|
|
@@ -9877,8 +11247,13 @@ export interface OperationParams {
|
|
|
9877
11247
|
*/
|
|
9878
11248
|
precision?: number | PipelineRef;
|
|
9879
11249
|
/**
|
|
9880
|
-
*
|
|
9881
|
-
*
|
|
11250
|
+
* `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
|
|
11251
|
+
* `keep` writes the model's axes. `zUpToYUp` is refused.
|
|
11252
|
+
*/
|
|
11253
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
11254
|
+
/**
|
|
11255
|
+
* When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
|
|
11256
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
9882
11257
|
*/
|
|
9883
11258
|
adjustYtoZ?: boolean | PipelineRef;
|
|
9884
11259
|
/**
|
|
@@ -9891,9 +11266,10 @@ export interface OperationParams {
|
|
|
9891
11266
|
* Triangulates a shape and writes it as OBJ, the mesh format most 3D programs read, returning
|
|
9892
11267
|
* the file's text.
|
|
9893
11268
|
*
|
|
9894
|
-
* `precision` is the meshing tolerance in model units
|
|
9895
|
-
*
|
|
9896
|
-
* carries no colors; `assembly.manager.exportDocumentToObj` writes colored
|
|
11269
|
+
* `precision` is the meshing tolerance in model units and coordinates keep six decimals. With
|
|
11270
|
+
* the conventions set the file shows what the screen shows, Z-up under `yUpToZUp`. `mtl` stays
|
|
11271
|
+
* empty, since a shape carries no colors; `assembly.manager.exportDocumentToObj` writes colored
|
|
11272
|
+
* parts.
|
|
9897
11273
|
*/
|
|
9898
11274
|
"occt.io.saveShapeObjAndReturn": {
|
|
9899
11275
|
/** The shape written to the file. */
|
|
@@ -9909,8 +11285,13 @@ export interface OperationParams {
|
|
|
9909
11285
|
*/
|
|
9910
11286
|
precision?: number | PipelineRef;
|
|
9911
11287
|
/**
|
|
9912
|
-
*
|
|
9913
|
-
*
|
|
11288
|
+
* `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
|
|
11289
|
+
* `keep` writes the model's axes. `zUpToYUp` is refused.
|
|
11290
|
+
*/
|
|
11291
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
11292
|
+
/**
|
|
11293
|
+
* When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
|
|
11294
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
9914
11295
|
*/
|
|
9915
11296
|
adjustYtoZ?: boolean | PipelineRef;
|
|
9916
11297
|
/**
|
|
@@ -9923,9 +11304,9 @@ export interface OperationParams {
|
|
|
9923
11304
|
* Triangulates a shape, writes it as ASCII PLY with a normal per vertex, and starts a browser
|
|
9924
11305
|
* download of the file.
|
|
9925
11306
|
*
|
|
9926
|
-
* `precision` is the meshing tolerance in model units
|
|
9927
|
-
*
|
|
9928
|
-
* `saveShapePlyAndReturn` gives the text instead.
|
|
11307
|
+
* `precision` is the meshing tolerance in model units. With the conventions set the file shows
|
|
11308
|
+
* what the screen shows, Z-up under `yUpToZUp`. `fileName` names the download and
|
|
11309
|
+
* `tryDownload` false skips it; `saveShapePlyAndReturn` gives the text instead.
|
|
9929
11310
|
*/
|
|
9930
11311
|
"occt.io.saveShapePly": {
|
|
9931
11312
|
/** The shape written to the file. */
|
|
@@ -9938,8 +11319,13 @@ export interface OperationParams {
|
|
|
9938
11319
|
*/
|
|
9939
11320
|
precision?: number | PipelineRef;
|
|
9940
11321
|
/**
|
|
9941
|
-
*
|
|
9942
|
-
*
|
|
11322
|
+
* `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
|
|
11323
|
+
* `keep` writes the model's axes. `zUpToYUp` is refused.
|
|
11324
|
+
*/
|
|
11325
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
11326
|
+
/**
|
|
11327
|
+
* When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
|
|
11328
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
9943
11329
|
*/
|
|
9944
11330
|
adjustYtoZ?: boolean | PipelineRef;
|
|
9945
11331
|
/**
|
|
@@ -9953,8 +11339,8 @@ export interface OperationParams {
|
|
|
9953
11339
|
* scanning tools read, returning the file's text.
|
|
9954
11340
|
*
|
|
9955
11341
|
* Coordinates keep six significant digits, so past 1000 units they keep two decimals.
|
|
9956
|
-
* `precision` is the meshing tolerance in model units
|
|
9957
|
-
*
|
|
11342
|
+
* `precision` is the meshing tolerance in model units. With the conventions set the file shows
|
|
11343
|
+
* what the screen shows, Z-up under `yUpToZUp`.
|
|
9958
11344
|
*/
|
|
9959
11345
|
"occt.io.saveShapePlyAndReturn": {
|
|
9960
11346
|
/** The shape written to the file. */
|
|
@@ -9967,8 +11353,13 @@ export interface OperationParams {
|
|
|
9967
11353
|
*/
|
|
9968
11354
|
precision?: number | PipelineRef;
|
|
9969
11355
|
/**
|
|
9970
|
-
*
|
|
9971
|
-
*
|
|
11356
|
+
* `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
|
|
11357
|
+
* `keep` writes the model's axes. `zUpToYUp` is refused.
|
|
11358
|
+
*/
|
|
11359
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
11360
|
+
/**
|
|
11361
|
+
* When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
|
|
11362
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
9972
11363
|
*/
|
|
9973
11364
|
adjustYtoZ?: boolean | PipelineRef;
|
|
9974
11365
|
/**
|
|
@@ -9981,9 +11372,9 @@ export interface OperationParams {
|
|
|
9981
11372
|
* Writes a shape as STEP, the exchange format for exact CAD geometry, and starts a browser
|
|
9982
11373
|
* download of the file.
|
|
9983
11374
|
*
|
|
9984
|
-
* With `
|
|
9985
|
-
*
|
|
9986
|
-
*
|
|
11375
|
+
* With `upAxis` `yUpToZUp` the file is Z-up: with the conventions set it shows what the screen
|
|
11376
|
+
* shows, without them Y and Z are swapped. The file is in millimetres;
|
|
11377
|
+
* `saveShapeSTEPAndReturn` returns the text.
|
|
9987
11378
|
*/
|
|
9988
11379
|
"occt.io.saveShapeSTEP": {
|
|
9989
11380
|
/** The shape written to the file. */
|
|
@@ -9991,13 +11382,18 @@ export interface OperationParams {
|
|
|
9991
11382
|
/** The name the downloaded file gets; `.step` is appended when missing. */
|
|
9992
11383
|
fileName?: string | PipelineRef;
|
|
9993
11384
|
/**
|
|
9994
|
-
*
|
|
9995
|
-
*
|
|
11385
|
+
* `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
|
|
11386
|
+
* `keep` writes the model's axes. `zUpToYUp` is refused.
|
|
11387
|
+
*/
|
|
11388
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
11389
|
+
/**
|
|
11390
|
+
* When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
|
|
11391
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
9996
11392
|
*/
|
|
9997
11393
|
adjustYtoZ?: boolean | PipelineRef;
|
|
9998
11394
|
/**
|
|
9999
|
-
* When true,
|
|
10000
|
-
*
|
|
11395
|
+
* When true, `upAxis` `yUpToZUp` turns the shape 90 degrees about X instead of swapping, for a
|
|
11396
|
+
* right-handed scene.
|
|
10001
11397
|
*/
|
|
10002
11398
|
fromRightHanded?: boolean | PipelineRef;
|
|
10003
11399
|
/**
|
|
@@ -10014,8 +11410,8 @@ export interface OperationParams {
|
|
|
10014
11410
|
/**
|
|
10015
11411
|
* Writes a shape as STEP, the exchange format for exact CAD geometry, and returns its text.
|
|
10016
11412
|
*
|
|
10017
|
-
* With `
|
|
10018
|
-
*
|
|
11413
|
+
* With `upAxis` `yUpToZUp` the file is Z-up, as CAD programs expect: with the conventions set it
|
|
11414
|
+
* shows what the screen shows, and without them Y and Z are swapped. The file is in
|
|
10019
11415
|
* millimetres, a shape in another `unit` scaled to them.
|
|
10020
11416
|
*/
|
|
10021
11417
|
"occt.io.saveShapeSTEPAndReturn": {
|
|
@@ -10024,13 +11420,18 @@ export interface OperationParams {
|
|
|
10024
11420
|
/** The name the downloaded file gets; `.step` is appended when missing. */
|
|
10025
11421
|
fileName?: string | PipelineRef;
|
|
10026
11422
|
/**
|
|
10027
|
-
*
|
|
10028
|
-
*
|
|
11423
|
+
* `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
|
|
11424
|
+
* `keep` writes the model's axes. `zUpToYUp` is refused.
|
|
11425
|
+
*/
|
|
11426
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
11427
|
+
/**
|
|
11428
|
+
* When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
|
|
11429
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
10029
11430
|
*/
|
|
10030
11431
|
adjustYtoZ?: boolean | PipelineRef;
|
|
10031
11432
|
/**
|
|
10032
|
-
* When true,
|
|
10033
|
-
*
|
|
11433
|
+
* When true, `upAxis` `yUpToZUp` turns the shape 90 degrees about X instead of swapping, for a
|
|
11434
|
+
* right-handed scene.
|
|
10034
11435
|
*/
|
|
10035
11436
|
fromRightHanded?: boolean | PipelineRef;
|
|
10036
11437
|
/**
|
|
@@ -10048,9 +11449,9 @@ export interface OperationParams {
|
|
|
10048
11449
|
* Triangulates a shape, writes it as STL, the mesh format 3D printers read, and starts a browser
|
|
10049
11450
|
* download of the file.
|
|
10050
11451
|
*
|
|
10051
|
-
* `precision` is the meshing tolerance in model units
|
|
10052
|
-
*
|
|
10053
|
-
*
|
|
11452
|
+
* `precision` is the meshing tolerance in model units and `binary` writes the smaller binary
|
|
11453
|
+
* form. With the conventions set the file shows what the screen shows, Z-up under `yUpToZUp`.
|
|
11454
|
+
* `saveShapeStlAndReturn` gives the file instead.
|
|
10054
11455
|
*/
|
|
10055
11456
|
"occt.io.saveShapeStl": {
|
|
10056
11457
|
/** The shape written to the file. */
|
|
@@ -10063,8 +11464,13 @@ export interface OperationParams {
|
|
|
10063
11464
|
*/
|
|
10064
11465
|
precision?: number | PipelineRef;
|
|
10065
11466
|
/**
|
|
10066
|
-
*
|
|
10067
|
-
*
|
|
11467
|
+
* `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
|
|
11468
|
+
* `keep` writes the model's axes. `zUpToYUp` is refused.
|
|
11469
|
+
*/
|
|
11470
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
11471
|
+
/**
|
|
11472
|
+
* When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
|
|
11473
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
10068
11474
|
*/
|
|
10069
11475
|
adjustYtoZ?: boolean | PipelineRef;
|
|
10070
11476
|
/**
|
|
@@ -10079,12 +11485,12 @@ export interface OperationParams {
|
|
|
10079
11485
|
binary?: boolean | PipelineRef;
|
|
10080
11486
|
};
|
|
10081
11487
|
/**
|
|
10082
|
-
* Triangulates a shape and writes it as STL, the mesh format 3D printers
|
|
10083
|
-
*
|
|
11488
|
+
* Triangulates a shape and writes it as STL, the mesh format 3D printers read, returning its
|
|
11489
|
+
* text, or its bytes when `binary` is true.
|
|
10084
11490
|
*
|
|
10085
|
-
* `precision` is the meshing tolerance in model units
|
|
10086
|
-
*
|
|
10087
|
-
* `tryDownload` matter only for a download.
|
|
11491
|
+
* `precision` is the meshing tolerance in model units, smaller following curves more closely.
|
|
11492
|
+
* With the conventions set the file shows what the screen shows, Z-up under `yUpToZUp`.
|
|
11493
|
+
* `fileName` and `tryDownload` matter only for a download.
|
|
10088
11494
|
*/
|
|
10089
11495
|
"occt.io.saveShapeStlAndReturn": {
|
|
10090
11496
|
/** The shape written to the file. */
|
|
@@ -10097,8 +11503,13 @@ export interface OperationParams {
|
|
|
10097
11503
|
*/
|
|
10098
11504
|
precision?: number | PipelineRef;
|
|
10099
11505
|
/**
|
|
10100
|
-
*
|
|
10101
|
-
*
|
|
11506
|
+
* `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
|
|
11507
|
+
* `keep` writes the model's axes. `zUpToYUp` is refused.
|
|
11508
|
+
*/
|
|
11509
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
11510
|
+
/**
|
|
11511
|
+
* When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
|
|
11512
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
10102
11513
|
*/
|
|
10103
11514
|
adjustYtoZ?: boolean | PipelineRef;
|
|
10104
11515
|
/**
|
|
@@ -10116,8 +11527,8 @@ export interface OperationParams {
|
|
|
10116
11527
|
* Draws the edges a view of a shape sees as an SVG drawing, with the hidden edges dashed when
|
|
10117
11528
|
* asked, and starts a browser download of the file.
|
|
10118
11529
|
*
|
|
10119
|
-
* The drawing shows the view from the frame's normal side, x along its direction;
|
|
10120
|
-
*
|
|
11530
|
+
* The drawing shows the view from the frame's normal side, x along its direction; curves stay
|
|
11531
|
+
* exact where SVG can draw them. `saveShapeSvgAndReturn` gives the text instead.
|
|
10121
11532
|
*/
|
|
10122
11533
|
"occt.io.saveShapeSvg": {
|
|
10123
11534
|
/** The shape to draw. */
|
|
@@ -10130,8 +11541,8 @@ export interface OperationParams {
|
|
|
10130
11541
|
/** When true, the edges other faces cover are drawn too, dashed. */
|
|
10131
11542
|
drawHidden?: boolean | PipelineRef;
|
|
10132
11543
|
/**
|
|
10133
|
-
* How far the
|
|
10134
|
-
*
|
|
11544
|
+
* How far the view may stray from the shape, in model units: the tolerance of hidden-line
|
|
11545
|
+
* removal and of the cubics that stand in for curves SVG cannot draw.
|
|
10135
11546
|
*/
|
|
10136
11547
|
precision?: number | PipelineRef;
|
|
10137
11548
|
/**
|
|
@@ -10151,9 +11562,9 @@ export interface OperationParams {
|
|
|
10151
11562
|
* Draws the edges a view of a shape sees as SVG, hidden ones dashed when asked, and returns the
|
|
10152
11563
|
* file's text.
|
|
10153
11564
|
*
|
|
10154
|
-
* The view looks from the frame's normal side, x along the frame's direction
|
|
10155
|
-
*
|
|
10156
|
-
*
|
|
11565
|
+
* The view looks from the frame's normal side, x along the frame's direction. Curves stay exact
|
|
11566
|
+
* where SVG can draw them, others become cubics within `precision`; with the shape's `unit`, the
|
|
11567
|
+
* file states its true size.
|
|
10157
11568
|
*/
|
|
10158
11569
|
"occt.io.saveShapeSvgAndReturn": {
|
|
10159
11570
|
/** The shape to draw. */
|
|
@@ -10166,8 +11577,8 @@ export interface OperationParams {
|
|
|
10166
11577
|
/** When true, the edges other faces cover are drawn too, dashed. */
|
|
10167
11578
|
drawHidden?: boolean | PipelineRef;
|
|
10168
11579
|
/**
|
|
10169
|
-
* How far the
|
|
10170
|
-
*
|
|
11580
|
+
* How far the view may stray from the shape, in model units: the tolerance of hidden-line
|
|
11581
|
+
* removal and of the cubics that stand in for curves SVG cannot draw.
|
|
10171
11582
|
*/
|
|
10172
11583
|
precision?: number | PipelineRef;
|
|
10173
11584
|
/**
|
|
@@ -10184,14 +11595,17 @@ export interface OperationParams {
|
|
|
10184
11595
|
tryDownload?: boolean | PipelineRef;
|
|
10185
11596
|
};
|
|
10186
11597
|
/**
|
|
10187
|
-
* Turns the wires of a shape into
|
|
11598
|
+
* Turns the wires of a shape into drawing paths, the first step of a 2D DXF export.
|
|
10188
11599
|
*
|
|
10189
|
-
* The shape
|
|
10190
|
-
*
|
|
10191
|
-
* `dxfPathsWithLayer` and write
|
|
11600
|
+
* The shape is seen along Y: X stays X and Z becomes the drawing's Y (-Z under right-handed
|
|
11601
|
+
* conventions). Curves stay exact unless `exactCurves` is off. Give the paths a layer with
|
|
11602
|
+
* `dxfPathsWithLayer` and write them with `dxfCreate`.
|
|
10192
11603
|
*/
|
|
10193
11604
|
"occt.io.shapeToDxfPaths": {
|
|
10194
|
-
/**
|
|
11605
|
+
/**
|
|
11606
|
+
* The shape whose wires are traced, seen along Y: X stays X and Z becomes the drawing's Y (-Z
|
|
11607
|
+
* under right-handed conventions), so a flat shape keeps its size.
|
|
11608
|
+
*/
|
|
10195
11609
|
shape: unknown | PipelineRef;
|
|
10196
11610
|
/**
|
|
10197
11611
|
* The largest angle, in radians, the traced polyline may turn between two points; smaller
|
|
@@ -10209,6 +11623,64 @@ export interface OperationParams {
|
|
|
10209
11623
|
uTolerance?: number | PipelineRef;
|
|
10210
11624
|
/** Edges shorter than this, in model units, are traced with the minimum number of points. */
|
|
10211
11625
|
minimumLength?: number | PipelineRef;
|
|
11626
|
+
/**
|
|
11627
|
+
* When true, ellipses and splines stay exact, and other curves become cubic splines within
|
|
11628
|
+
* `curvatureDeflection`; when false, curves other than lines and circles are traced as points.
|
|
11629
|
+
*/
|
|
11630
|
+
exactCurves?: boolean | PipelineRef;
|
|
11631
|
+
};
|
|
11632
|
+
/**
|
|
11633
|
+
* Draws layers of shapes into one SVG file and returns its text.
|
|
11634
|
+
*
|
|
11635
|
+
* Each layer becomes an Inkscape layer. The shapes are seen along Y: X stays X and Z becomes the
|
|
11636
|
+
* drawing's Y (-Z under right-handed conventions). Curves stay exact where SVG can draw them and
|
|
11637
|
+
* become cubics within `tolerance` elsewhere; with `unit` the file has its true size.
|
|
11638
|
+
*/
|
|
11639
|
+
"occt.io.svgCreate": {
|
|
11640
|
+
/** The layers from `io.svgLayer`; each becomes a group Inkscape reads as a layer. */
|
|
11641
|
+
layers: unknown[] | PipelineRef;
|
|
11642
|
+
/**
|
|
11643
|
+
* The unit the shapes are modelled in, which gives the file its true width and height. Left out,
|
|
11644
|
+
* the file states no size and viewers fit it to the window.
|
|
11645
|
+
*/
|
|
11646
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
11647
|
+
/**
|
|
11648
|
+
* How wide the lines are, in model units. Left out, a five-hundredth of the drawing's larger
|
|
11649
|
+
* side.
|
|
11650
|
+
*/
|
|
11651
|
+
strokeWidth?: number | PipelineRef;
|
|
11652
|
+
/**
|
|
11653
|
+
* The empty border around the drawing, in model units. Left out, a fortieth of the drawing's
|
|
11654
|
+
* larger side.
|
|
11655
|
+
*/
|
|
11656
|
+
margin?: number | PipelineRef;
|
|
11657
|
+
/**
|
|
11658
|
+
* The largest distance, in model units, between a curve SVG cannot draw exactly and the cubic
|
|
11659
|
+
* curves that stand in for it.
|
|
11660
|
+
*/
|
|
11661
|
+
tolerance?: number | PipelineRef;
|
|
11662
|
+
/** The name the downloaded file gets. */
|
|
11663
|
+
fileName?: string | PipelineRef;
|
|
11664
|
+
/**
|
|
11665
|
+
* When true, a browser download of the file is started where that is possible; the kernel
|
|
11666
|
+
* itself only returns the text.
|
|
11667
|
+
*/
|
|
11668
|
+
tryDownload?: boolean | PipelineRef;
|
|
11669
|
+
};
|
|
11670
|
+
/**
|
|
11671
|
+
* Puts shapes on a named layer with a color and a line type, making one layer of an SVG drawing.
|
|
11672
|
+
*
|
|
11673
|
+
* The shapes are kept as they are; `svgCreate` draws their wires when it writes the file.
|
|
11674
|
+
*/
|
|
11675
|
+
"occt.io.svgLayer": {
|
|
11676
|
+
/** The shapes whose wires are drawn on this layer. */
|
|
11677
|
+
shapes: unknown[] | PipelineRef;
|
|
11678
|
+
/** The name of the layer, the group Inkscape shows for it. */
|
|
11679
|
+
layer?: string | PipelineRef;
|
|
11680
|
+
/** The color of the lines as a hex string such as `#000000`. */
|
|
11681
|
+
color?: unknown | PipelineRef;
|
|
11682
|
+
/** Whether the lines are whole or dashed, such as `hidden` for edges a view cannot see. */
|
|
11683
|
+
lineType?: "continuous" | "dashed" | "hidden" | "center" | "dotted" | PipelineRef;
|
|
10212
11684
|
};
|
|
10213
11685
|
/**
|
|
10214
11686
|
* Reads the center of a shape's axis-aligned bounding box, halfway between its two corners.
|
|
@@ -10423,6 +11895,41 @@ export interface OperationParams {
|
|
|
10423
11895
|
/** The direction and distance of the sweep as one vector, in model units. */
|
|
10424
11896
|
direction?: [number, number, number] | PipelineRef;
|
|
10425
11897
|
};
|
|
11898
|
+
/**
|
|
11899
|
+
* Cuts shapes with the plane of a frame and hatches the cut faces in one call: for each shape its
|
|
11900
|
+
* cut faces, their hatch lines as edges, and each face's hatch as drawing data in the frame's
|
|
11901
|
+
* coordinates.
|
|
11902
|
+
*
|
|
11903
|
+
* The hatches write to DXF or SVG beside `hiddenLines` of the same frame, and `bitbybit.draw`
|
|
11904
|
+
* draws the result. Experimental.
|
|
11905
|
+
*/
|
|
11906
|
+
"occt.operations.hatchedSectionByFrame": {
|
|
11907
|
+
/** The shapes to cut, such as the parts of an assembly; each gives its own cut faces. */
|
|
11908
|
+
shapes: unknown[] | PipelineRef;
|
|
11909
|
+
/**
|
|
11910
|
+
* The plane to cut along, through the frame's origin square to its normal, which points at the
|
|
11911
|
+
* side taken away; the hatch data takes its direction as X.
|
|
11912
|
+
*/
|
|
11913
|
+
frame: unknown | PipelineRef;
|
|
11914
|
+
/** What the cut faces are filled with: single lines, pairs, crossed lines or solid ink. */
|
|
11915
|
+
pattern?: "solid" | "ansi31" | "ansi32" | "ansi37" | PipelineRef;
|
|
11916
|
+
/** The angle of the hatch lines in degrees, counterclockwise from the frame's direction. */
|
|
11917
|
+
angle?: number | PipelineRef;
|
|
11918
|
+
/** The distance between the hatch lines, in model units. */
|
|
11919
|
+
spacing?: number | PipelineRef;
|
|
11920
|
+
/**
|
|
11921
|
+
* When true, a shape whose cut faces come within `spacing` of an earlier shape's is hatched at
|
|
11922
|
+
* another angle, `angle` plus 90, 30, 120, 60 or 150.
|
|
11923
|
+
*/
|
|
11924
|
+
neighbourAngles?: boolean | PipelineRef;
|
|
11925
|
+
/**
|
|
11926
|
+
* How far, in model units, a curved cut edge may stray from the straight pieces the hatch lines
|
|
11927
|
+
* are clipped against.
|
|
11928
|
+
*/
|
|
11929
|
+
curveTolerance?: number | PipelineRef;
|
|
11930
|
+
/** How close the ends of two section edges must lie to be joined into one wire, in model units. */
|
|
11931
|
+
tolerance?: number | PipelineRef;
|
|
11932
|
+
};
|
|
10426
11933
|
/**
|
|
10427
11934
|
* Draws a shape seen from a view frame as a technical drawing does, flat on the XZ plane: the
|
|
10428
11935
|
* edges the eye sees and those that faces hide.
|
|
@@ -10449,8 +11956,55 @@ export interface OperationParams {
|
|
|
10449
11956
|
*/
|
|
10450
11957
|
smoothEdges?: boolean | PipelineRef;
|
|
10451
11958
|
/**
|
|
10452
|
-
* When true, the edges that faces cover are
|
|
10453
|
-
* empty.
|
|
11959
|
+
* When true, the edges that faces cover are drawn too; when false, the hidden part of the
|
|
11960
|
+
* result stays empty.
|
|
11961
|
+
*/
|
|
11962
|
+
hiddenEdges?: boolean | PipelineRef;
|
|
11963
|
+
/**
|
|
11964
|
+
* How far the eye sits from the frame's origin along its normal for a perspective, in model
|
|
11965
|
+
* units; 0 draws a parallel view. A perspective needs `exact`.
|
|
11966
|
+
*/
|
|
11967
|
+
focus?: number | PipelineRef;
|
|
11968
|
+
/**
|
|
11969
|
+
* The meshing tolerance in model units when `exact` is false; a smaller value follows curved
|
|
11970
|
+
* faces more closely.
|
|
11971
|
+
*/
|
|
11972
|
+
precision?: number | PipelineRef;
|
|
11973
|
+
/**
|
|
11974
|
+
* When true, the drawing is tidied: a curve seen edge-on becomes a line, and a hidden edge
|
|
11975
|
+
* lying wholly under other edges is left out.
|
|
11976
|
+
*/
|
|
11977
|
+
tidy?: boolean | PipelineRef;
|
|
11978
|
+
};
|
|
11979
|
+
/**
|
|
11980
|
+
* Draws a shape as `hiddenLines` does, with the edges sorted by kind, so a drawing can give
|
|
11981
|
+
* each its own line weight.
|
|
11982
|
+
*
|
|
11983
|
+
* `sharp` holds the edges where faces meet at an angle, `outline` the silhouettes of curved
|
|
11984
|
+
* faces and `smooth` the edges where faces meet without a crease; `hiddenSharp`,
|
|
11985
|
+
* `hiddenOutline` and `hiddenSmooth` hold the same where faces cover them.
|
|
11986
|
+
*/
|
|
11987
|
+
"occt.operations.hiddenLinesByKind": {
|
|
11988
|
+
/** The shape to draw. */
|
|
11989
|
+
shape: unknown | PipelineRef;
|
|
11990
|
+
/**
|
|
11991
|
+
* The view: the eye sits on the side the normal points to and looks back along it, and the
|
|
11992
|
+
* drawing's x runs along the direction from the frame's origin.
|
|
11993
|
+
*/
|
|
11994
|
+
frame: unknown | PipelineRef;
|
|
11995
|
+
/**
|
|
11996
|
+
* When true, the drawing is made from the exact geometry; when false, from a mesh, which is
|
|
11997
|
+
* faster and draws parallel views only.
|
|
11998
|
+
*/
|
|
11999
|
+
exact?: boolean | PipelineRef;
|
|
12000
|
+
/**
|
|
12001
|
+
* When true, the edges where faces meet without a crease, such as the borders of a fillet, are
|
|
12002
|
+
* drawn too.
|
|
12003
|
+
*/
|
|
12004
|
+
smoothEdges?: boolean | PipelineRef;
|
|
12005
|
+
/**
|
|
12006
|
+
* When true, the edges that faces cover are drawn too; when false, the hidden part of the
|
|
12007
|
+
* result stays empty.
|
|
10454
12008
|
*/
|
|
10455
12009
|
hiddenEdges?: boolean | PipelineRef;
|
|
10456
12010
|
/**
|
|
@@ -10463,6 +12017,11 @@ export interface OperationParams {
|
|
|
10463
12017
|
* faces more closely.
|
|
10464
12018
|
*/
|
|
10465
12019
|
precision?: number | PipelineRef;
|
|
12020
|
+
/**
|
|
12021
|
+
* When true, the drawing is tidied: a curve seen edge-on becomes a line, and a hidden edge
|
|
12022
|
+
* lying wholly under other edges is left out.
|
|
12023
|
+
*/
|
|
12024
|
+
tidy?: boolean | PipelineRef;
|
|
10466
12025
|
};
|
|
10467
12026
|
/**
|
|
10468
12027
|
* Builds a surface through a series of wires, like skin stretched over ribs: each wire is one
|
|
@@ -13629,8 +15188,13 @@ export interface OperationParams {
|
|
|
13629
15188
|
*/
|
|
13630
15189
|
recipe: unknown | PipelineRef;
|
|
13631
15190
|
/**
|
|
13632
|
-
*
|
|
13633
|
-
*
|
|
15191
|
+
* `zUpToYUp` turns each shape a quarter turn about X so the recipe's Z points along Y, and
|
|
15192
|
+
* `(x, y, z)` becomes `(x, z, -y)`; `keep` leaves them. `yUpToZUp` is refused.
|
|
15193
|
+
*/
|
|
15194
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
15195
|
+
/**
|
|
15196
|
+
* When true, the shapes turn as `upAxis` `zUpToYUp` does; false, its old default, decides nothing.
|
|
15197
|
+
* True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
13634
15198
|
*/
|
|
13635
15199
|
adjustZtoY?: boolean | PipelineRef;
|
|
13636
15200
|
/**
|
|
@@ -14157,8 +15721,8 @@ export interface OperationParams {
|
|
|
14157
15721
|
* faces.
|
|
14158
15722
|
*
|
|
14159
15723
|
* `precision` is the meshing tolerance in model units: smaller values follow curved surfaces
|
|
14160
|
-
* more closely and give more triangles. `
|
|
14161
|
-
*
|
|
15724
|
+
* more closely and give more triangles. `upAxis` `yUpToZUp` makes the points Z-up for tools that treat
|
|
15725
|
+
* Z as up, and `reversedPoints` flips the winding of each triangle.
|
|
14162
15726
|
*/
|
|
14163
15727
|
"occt.shapeFacesToPolygonPoints": {
|
|
14164
15728
|
/** The shape to triangulate. */
|
|
@@ -14169,8 +15733,13 @@ export interface OperationParams {
|
|
|
14169
15733
|
*/
|
|
14170
15734
|
precision?: number | PipelineRef;
|
|
14171
15735
|
/**
|
|
14172
|
-
*
|
|
14173
|
-
*
|
|
15736
|
+
* `yUpToZUp` makes the points Z-up for tools that treat Z as up, turned about X when right-handed,
|
|
15737
|
+
* else with Y and Z swapped; `keep` leaves them. `zUpToYUp` is refused.
|
|
15738
|
+
*/
|
|
15739
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
15740
|
+
/**
|
|
15741
|
+
* When true, the points turn as `upAxis` `yUpToZUp` does; false, its old default, decides nothing.
|
|
15742
|
+
* True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
14174
15743
|
*/
|
|
14175
15744
|
adjustYtoZ?: boolean | PipelineRef;
|
|
14176
15745
|
/**
|
|
@@ -19300,8 +20869,13 @@ export interface OperationParams {
|
|
|
19300
20869
|
*/
|
|
19301
20870
|
precisionShare?: number | PipelineRef;
|
|
19302
20871
|
/**
|
|
19303
|
-
*
|
|
19304
|
-
*
|
|
20872
|
+
* `yUpToZUp` makes the meshes Z-up for tools that treat Z as up, turned about X when right-handed,
|
|
20873
|
+
* else with Y and Z swapped; `keep` leaves them. `zUpToYUp` is refused.
|
|
20874
|
+
*/
|
|
20875
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
20876
|
+
/**
|
|
20877
|
+
* When true, the meshes turn as `upAxis` `yUpToZUp` does; false, its old default, decides nothing.
|
|
20878
|
+
* True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
19305
20879
|
*/
|
|
19306
20880
|
adjustYtoZ?: boolean | PipelineRef;
|
|
19307
20881
|
/**
|
|
@@ -19391,8 +20965,13 @@ export interface OperationParams {
|
|
|
19391
20965
|
*/
|
|
19392
20966
|
precisionShare?: number | PipelineRef;
|
|
19393
20967
|
/**
|
|
19394
|
-
*
|
|
19395
|
-
*
|
|
20968
|
+
* `yUpToZUp` makes the mesh Z-up for tools that treat Z as up, turned about X when right-handed,
|
|
20969
|
+
* else with Y and Z swapped; `keep` leaves it. `zUpToYUp` is refused.
|
|
20970
|
+
*/
|
|
20971
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
20972
|
+
/**
|
|
20973
|
+
* When true, the mesh turns as `upAxis` `yUpToZUp` does; false, its old default, decides nothing.
|
|
20974
|
+
* True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
19396
20975
|
*/
|
|
19397
20976
|
adjustYtoZ?: boolean | PipelineRef;
|
|
19398
20977
|
/**
|
|
@@ -19717,20 +21296,19 @@ export interface OperationParams {
|
|
|
19717
21296
|
makeFace?: boolean | PipelineRef;
|
|
19718
21297
|
};
|
|
19719
21298
|
/**
|
|
19720
|
-
* Parses an SVG document
|
|
19721
|
-
* ground plane, ready to draw, extrude or transform as a whole.
|
|
21299
|
+
* Parses an SVG document into one compound on the ground, ready to draw, extrude or transform.
|
|
19722
21300
|
*
|
|
19723
|
-
* `faceStrategy` decides
|
|
19724
|
-
* units and its downward Y
|
|
19725
|
-
*
|
|
21301
|
+
* `faceStrategy` decides which closed outlines become faces; `unit`, `scale` and `flipY` map SVG
|
|
21302
|
+
* units and its downward Y; `alignment`, `direction`, `center` and `keepOrigin` place it. A very
|
|
21303
|
+
* large file is read up to its limits; `loadSVGStructured` lists what was left out.
|
|
19726
21304
|
*/
|
|
19727
21305
|
"occt.svg.loadSVG": {
|
|
19728
21306
|
/** The text of the SVG document. */
|
|
19729
21307
|
svg?: string | PipelineRef;
|
|
19730
21308
|
/**
|
|
19731
|
-
* How filled shapes become faces: `none` keeps
|
|
19732
|
-
*
|
|
19733
|
-
*
|
|
21309
|
+
* How filled shapes become faces: `none` keeps wires, `auto` follows each element's fill rule,
|
|
21310
|
+
* `nonzero` and `evenOdd` force one, `perSubpath` faces each closed subpath alone. Open subpaths
|
|
21311
|
+
* stay wires.
|
|
19734
21312
|
*/
|
|
19735
21313
|
faceStrategy?: "none" | "auto" | "nonzero" | "evenOdd" | "perSubpath" | PipelineRef;
|
|
19736
21314
|
/**
|
|
@@ -19742,33 +21320,53 @@ export interface OperationParams {
|
|
|
19742
21320
|
includeInvisible?: boolean | PipelineRef;
|
|
19743
21321
|
/** When true, consecutive segments of a subpath are merged into a single edge where they can be. */
|
|
19744
21322
|
joinSegments?: boolean | PipelineRef;
|
|
19745
|
-
/**
|
|
21323
|
+
/**
|
|
21324
|
+
* How far apart segment ends may be and still join, in model units; a subpath that ends this
|
|
21325
|
+
* close to its start counts as closed.
|
|
21326
|
+
*/
|
|
19746
21327
|
tolerance?: number | PipelineRef;
|
|
19747
|
-
/**
|
|
21328
|
+
/**
|
|
21329
|
+
* A factor applied to the SVG coordinates, or to the true size when `unit` is set; 1 keeps the
|
|
21330
|
+
* size.
|
|
21331
|
+
*/
|
|
19748
21332
|
scale?: number | PipelineRef;
|
|
19749
21333
|
/** When true, Y is negated so the drawing comes out upright, since SVG has Y pointing down. */
|
|
19750
21334
|
flipY?: boolean | PipelineRef;
|
|
19751
|
-
/**
|
|
21335
|
+
/**
|
|
21336
|
+
* Which point of the drawing's bounding box sits on `center`; `midMid` centers it. Not used
|
|
21337
|
+
* when `keepOrigin` is true.
|
|
21338
|
+
*/
|
|
19752
21339
|
alignment?: "topLeft" | "topMid" | "topRight" | "midLeft" | "midMid" | "midRight" | "bottomLeft" | "bottomMid" | "bottomRight" | PipelineRef;
|
|
19753
21340
|
/** The normal of the plane the drawing is laid on; the default lays it flat on the ground. */
|
|
19754
21341
|
direction?: [number, number, number] | PipelineRef;
|
|
19755
21342
|
/** The point the aligned drawing is placed at. */
|
|
19756
21343
|
center?: [number, number, number] | PipelineRef;
|
|
21344
|
+
/**
|
|
21345
|
+
* Imports at true size in this unit, read from the page's `width`, `height` and view box at 96
|
|
21346
|
+
* pixels an inch. Left out, SVG user units become model units.
|
|
21347
|
+
*/
|
|
21348
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
21349
|
+
/**
|
|
21350
|
+
* When true, the origin of the imported coordinates lands on `center`, ignoring `alignment`: the
|
|
21351
|
+
* SVG's own origin, or the page's top left corner when `unit` is set.
|
|
21352
|
+
*/
|
|
21353
|
+
keepOrigin?: boolean | PipelineRef;
|
|
19757
21354
|
};
|
|
19758
21355
|
/**
|
|
19759
21356
|
* Parses an SVG document and builds one shape per drawable element, each bundled with its
|
|
19760
|
-
* resolved fill, stroke and stroke width, plus the
|
|
21357
|
+
* resolved fill, stroke and stroke width, plus the warnings, the view box and the page size in
|
|
21358
|
+
* millimetres.
|
|
19761
21359
|
*
|
|
19762
21360
|
* Use it when the elements need their own colors or separate handling; `loadSVG` gives the
|
|
19763
|
-
* whole drawing as one shape.
|
|
21361
|
+
* whole drawing as one shape.
|
|
19764
21362
|
*/
|
|
19765
21363
|
"occt.svg.loadSVGStructured": {
|
|
19766
21364
|
/** The text of the SVG document. */
|
|
19767
21365
|
svg?: string | PipelineRef;
|
|
19768
21366
|
/**
|
|
19769
|
-
* How filled shapes become faces: `none` keeps
|
|
19770
|
-
*
|
|
19771
|
-
*
|
|
21367
|
+
* How filled shapes become faces: `none` keeps wires, `auto` follows each element's fill rule,
|
|
21368
|
+
* `nonzero` and `evenOdd` force one, `perSubpath` faces each closed subpath alone. Open subpaths
|
|
21369
|
+
* stay wires.
|
|
19772
21370
|
*/
|
|
19773
21371
|
faceStrategy?: "none" | "auto" | "nonzero" | "evenOdd" | "perSubpath" | PipelineRef;
|
|
19774
21372
|
/**
|
|
@@ -19780,18 +21378,37 @@ export interface OperationParams {
|
|
|
19780
21378
|
includeInvisible?: boolean | PipelineRef;
|
|
19781
21379
|
/** When true, consecutive segments of a subpath are merged into a single edge where they can be. */
|
|
19782
21380
|
joinSegments?: boolean | PipelineRef;
|
|
19783
|
-
/**
|
|
21381
|
+
/**
|
|
21382
|
+
* How far apart segment ends may be and still join, in model units; a subpath that ends this
|
|
21383
|
+
* close to its start counts as closed.
|
|
21384
|
+
*/
|
|
19784
21385
|
tolerance?: number | PipelineRef;
|
|
19785
|
-
/**
|
|
21386
|
+
/**
|
|
21387
|
+
* A factor applied to the SVG coordinates, or to the true size when `unit` is set; 1 keeps the
|
|
21388
|
+
* size.
|
|
21389
|
+
*/
|
|
19786
21390
|
scale?: number | PipelineRef;
|
|
19787
21391
|
/** When true, Y is negated so the drawing comes out upright, since SVG has Y pointing down. */
|
|
19788
21392
|
flipY?: boolean | PipelineRef;
|
|
19789
|
-
/**
|
|
21393
|
+
/**
|
|
21394
|
+
* Which point of the drawing's bounding box sits on `center`; `midMid` centers it. Not used
|
|
21395
|
+
* when `keepOrigin` is true.
|
|
21396
|
+
*/
|
|
19790
21397
|
alignment?: "topLeft" | "topMid" | "topRight" | "midLeft" | "midMid" | "midRight" | "bottomLeft" | "bottomMid" | "bottomRight" | PipelineRef;
|
|
19791
21398
|
/** The normal of the plane the drawing is laid on; the default lays it flat on the ground. */
|
|
19792
21399
|
direction?: [number, number, number] | PipelineRef;
|
|
19793
21400
|
/** The point the aligned drawing is placed at. */
|
|
19794
21401
|
center?: [number, number, number] | PipelineRef;
|
|
21402
|
+
/**
|
|
21403
|
+
* Imports at true size in this unit, read from the page's `width`, `height` and view box at 96
|
|
21404
|
+
* pixels an inch. Left out, SVG user units become model units.
|
|
21405
|
+
*/
|
|
21406
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
21407
|
+
/**
|
|
21408
|
+
* When true, the origin of the imported coordinates lands on `center`, ignoring `alignment`: the
|
|
21409
|
+
* SVG's own origin, or the page's top left corner when `unit` is set.
|
|
21410
|
+
*/
|
|
21411
|
+
keepOrigin?: boolean | PipelineRef;
|
|
19795
21412
|
};
|
|
19796
21413
|
/**
|
|
19797
21414
|
* Moves a shape so that one point and direction on it land on another point and direction: the
|
|
@@ -20360,6 +21977,20 @@ export interface OperationParams {
|
|
|
20360
21977
|
/** The move as `[x, y, z]`, in model units. */
|
|
20361
21978
|
translation?: [number, number, number] | PipelineRef;
|
|
20362
21979
|
};
|
|
21980
|
+
/** Read flat parts as nesting would, without nesting them */
|
|
21981
|
+
"occtPro.nesting.inspect": {
|
|
21982
|
+
/** The flat parts to read */
|
|
21983
|
+
shapes: unknown | PipelineRef;
|
|
21984
|
+
/** The tolerance and each part's xDirection; no stock is needed */
|
|
21985
|
+
options?: unknown | PipelineRef;
|
|
21986
|
+
};
|
|
21987
|
+
/** Place flat parts on sheets or a strip; returns the sheets as one compound and the layout report */
|
|
21988
|
+
"occtPro.nesting.nest": {
|
|
21989
|
+
/** The flat parts: planar faces, coplanar faces such as unfolded parts, plate solids, or drawings of closed wires */
|
|
21990
|
+
shapes: unknown | PipelineRef;
|
|
21991
|
+
/** The stock (rectangular sheets or one strip), each part's quantity, turns and flip, and the spacing, margin, tolerance and time budget; see NestingOptions */
|
|
21992
|
+
options: unknown | PipelineRef;
|
|
21993
|
+
};
|
|
20363
21994
|
/** Sheet-metal unfold metrics report for a single face */
|
|
20364
21995
|
"occtPro.sheetMetal.unfoldFaceReport": {
|
|
20365
21996
|
/** Shape that contains the face to unfold */
|
|
@@ -21635,9 +23266,9 @@ export interface OperationParams {
|
|
|
21635
23266
|
/**
|
|
21636
23267
|
* Draws one character as line paths with a simple stroke font.
|
|
21637
23268
|
*
|
|
21638
|
-
* The paths lie flat on the XZ plane,
|
|
21639
|
-
*
|
|
21640
|
-
* mark.
|
|
23269
|
+
* The paths lie flat on the XZ plane, the character `height` tall, and come with its width and
|
|
23270
|
+
* height. Accented Latin letters are drawn with their marks, other unknown characters as a
|
|
23271
|
+
* question mark.
|
|
21641
23272
|
* Example: 'A' at height 10 -> the strokes of an A, 10 units tall
|
|
21642
23273
|
*/
|
|
21643
23274
|
"text.vectorChar": {
|