@bitbybit-dev/mcp 1.3.2-rc.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.
Files changed (141) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +143 -0
  3. package/dist/context.d.ts +19 -0
  4. package/dist/context.d.ts.map +1 -0
  5. package/dist/context.js +28 -0
  6. package/dist/context.js.map +1 -0
  7. package/dist/descriptions.d.ts +10 -0
  8. package/dist/descriptions.d.ts.map +1 -0
  9. package/dist/descriptions.js +48 -0
  10. package/dist/descriptions.js.map +1 -0
  11. package/dist/guides-split.d.ts +9 -0
  12. package/dist/guides-split.d.ts.map +1 -0
  13. package/dist/guides-split.js +41 -0
  14. package/dist/guides-split.js.map +1 -0
  15. package/dist/guides.generated.d.ts +9 -0
  16. package/dist/guides.generated.d.ts.map +1 -0
  17. package/dist/guides.generated.js +93 -0
  18. package/dist/guides.generated.js.map +1 -0
  19. package/dist/index-loader.d.ts +11 -0
  20. package/dist/index-loader.d.ts.map +1 -0
  21. package/dist/index-loader.js +53 -0
  22. package/dist/index-loader.js.map +1 -0
  23. package/dist/index-reader.d.ts +27 -0
  24. package/dist/index-reader.d.ts.map +1 -0
  25. package/dist/index-reader.js +171 -0
  26. package/dist/index-reader.js.map +1 -0
  27. package/dist/index-shape.d.ts +3 -0
  28. package/dist/index-shape.d.ts.map +1 -0
  29. package/dist/index-shape.js +17 -0
  30. package/dist/index-shape.js.map +1 -0
  31. package/dist/index-types.d.ts +72 -0
  32. package/dist/index-types.d.ts.map +1 -0
  33. package/dist/index-types.js +2 -0
  34. package/dist/index-types.js.map +1 -0
  35. package/dist/index-url.d.ts +11 -0
  36. package/dist/index-url.d.ts.map +1 -0
  37. package/dist/index-url.js +30 -0
  38. package/dist/index-url.js.map +1 -0
  39. package/dist/index.d.ts +21 -0
  40. package/dist/index.d.ts.map +1 -0
  41. package/dist/index.js +14 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/installed-version.d.ts +18 -0
  44. package/dist/installed-version.d.ts.map +1 -0
  45. package/dist/installed-version.js +67 -0
  46. package/dist/installed-version.js.map +1 -0
  47. package/dist/json-schema.d.ts +2 -0
  48. package/dist/json-schema.d.ts.map +1 -0
  49. package/dist/json-schema.js +46 -0
  50. package/dist/json-schema.js.map +1 -0
  51. package/dist/registry.d.ts +56 -0
  52. package/dist/registry.d.ts.map +1 -0
  53. package/dist/registry.js +78 -0
  54. package/dist/registry.js.map +1 -0
  55. package/dist/render.d.ts +4 -0
  56. package/dist/render.d.ts.map +1 -0
  57. package/dist/render.js +76 -0
  58. package/dist/render.js.map +1 -0
  59. package/dist/results.d.ts +5 -0
  60. package/dist/results.d.ts.map +1 -0
  61. package/dist/results.js +18 -0
  62. package/dist/results.js.map +1 -0
  63. package/dist/server.d.ts +22 -0
  64. package/dist/server.d.ts.map +1 -0
  65. package/dist/server.js +69 -0
  66. package/dist/server.js.map +1 -0
  67. package/dist/stdio.d.ts +3 -0
  68. package/dist/stdio.d.ts.map +1 -0
  69. package/dist/stdio.js +64 -0
  70. package/dist/stdio.js.map +1 -0
  71. package/dist/tools/describe.d.ts +10 -0
  72. package/dist/tools/describe.d.ts.map +1 -0
  73. package/dist/tools/describe.js +39 -0
  74. package/dist/tools/describe.js.map +1 -0
  75. package/dist/tools/fetch.d.ts +9 -0
  76. package/dist/tools/fetch.d.ts.map +1 -0
  77. package/dist/tools/fetch.js +37 -0
  78. package/dist/tools/fetch.js.map +1 -0
  79. package/dist/tools/get-examples.d.ts +17 -0
  80. package/dist/tools/get-examples.d.ts.map +1 -0
  81. package/dist/tools/get-examples.js +60 -0
  82. package/dist/tools/get-examples.js.map +1 -0
  83. package/dist/tools/get-guide.d.ts +10 -0
  84. package/dist/tools/get-guide.d.ts.map +1 -0
  85. package/dist/tools/get-guide.js +64 -0
  86. package/dist/tools/get-guide.js.map +1 -0
  87. package/dist/tools/index.d.ts +4 -0
  88. package/dist/tools/index.d.ts.map +1 -0
  89. package/dist/tools/index.js +19 -0
  90. package/dist/tools/index.js.map +1 -0
  91. package/dist/tools/list-namespace.d.ts +10 -0
  92. package/dist/tools/list-namespace.d.ts.map +1 -0
  93. package/dist/tools/list-namespace.js +41 -0
  94. package/dist/tools/list-namespace.js.map +1 -0
  95. package/dist/tools/search-api.d.ts +16 -0
  96. package/dist/tools/search-api.d.ts.map +1 -0
  97. package/dist/tools/search-api.js +44 -0
  98. package/dist/tools/search-api.js.map +1 -0
  99. package/dist/tools/search.d.ts +9 -0
  100. package/dist/tools/search.d.ts.map +1 -0
  101. package/dist/tools/search.js +31 -0
  102. package/dist/tools/search.js.map +1 -0
  103. package/package.json +102 -0
  104. package/server.json +30 -0
  105. package/src/__fixtures__/index.sample.json +1916 -0
  106. package/src/__fixtures__/load.ts +29 -0
  107. package/src/context.ts +40 -0
  108. package/src/dependencies.test.ts +72 -0
  109. package/src/descriptions.ts +62 -0
  110. package/src/guides-split.ts +46 -0
  111. package/src/guides.generated.ts +95 -0
  112. package/src/guides.test.ts +57 -0
  113. package/src/index-loader.test.ts +160 -0
  114. package/src/index-loader.ts +61 -0
  115. package/src/index-reader.ts +179 -0
  116. package/src/index-shape.ts +17 -0
  117. package/src/index-types.ts +74 -0
  118. package/src/index-url.ts +29 -0
  119. package/src/index.ts +20 -0
  120. package/src/installed-version.test.ts +79 -0
  121. package/src/installed-version.ts +80 -0
  122. package/src/json-schema.test.ts +65 -0
  123. package/src/json-schema.ts +40 -0
  124. package/src/network.test.ts +37 -0
  125. package/src/registry.test.ts +177 -0
  126. package/src/registry.ts +139 -0
  127. package/src/render.ts +62 -0
  128. package/src/results.ts +21 -0
  129. package/src/server.test.ts +233 -0
  130. package/src/server.ts +117 -0
  131. package/src/stdio.test.ts +100 -0
  132. package/src/stdio.ts +67 -0
  133. package/src/tools/describe.ts +42 -0
  134. package/src/tools/docs-tools.test.ts +375 -0
  135. package/src/tools/fetch.ts +39 -0
  136. package/src/tools/get-examples.ts +59 -0
  137. package/src/tools/get-guide.ts +69 -0
  138. package/src/tools/index.ts +20 -0
  139. package/src/tools/list-namespace.ts +50 -0
  140. package/src/tools/search-api.ts +47 -0
  141. package/src/tools/search.ts +34 -0
@@ -0,0 +1,1916 @@
1
+ {
2
+ "version": "9.9.9",
3
+ "engines": [
4
+ "babylonjs",
5
+ "threejs",
6
+ "playcanvas"
7
+ ],
8
+ "bundleSha256": {
9
+ "babylonjs": "0000000000000000000000000000000000000000000000000000000000000000",
10
+ "threejs": "0000000000000000000000000000000000000000000000000000000000000000",
11
+ "playcanvas": "0000000000000000000000000000000000000000000000000000000000000000"
12
+ },
13
+ "namespaces": [
14
+ "advanced",
15
+ "advanced.text3d",
16
+ "babylon",
17
+ "babylon.meshBuilder",
18
+ "draw",
19
+ "math",
20
+ "occt",
21
+ "occt.fillets",
22
+ "occt.shapes",
23
+ "occt.shapes.solid",
24
+ "occtPro",
25
+ "occtPro.sheetMetal",
26
+ "verb",
27
+ "verb.curve"
28
+ ],
29
+ "members": [
30
+ {
31
+ "path": "advanced",
32
+ "kind": "namespace",
33
+ "name": "advanced",
34
+ "className": "AdvancedAdv",
35
+ "signature": null,
36
+ "async": false,
37
+ "params": [],
38
+ "returns": null,
39
+ "summary": "The entry point to the advanced tools: dimensions, camera navigation, surface patterns and 3D text.",
40
+ "doc": "The entry point to the advanced tools: dimensions, camera navigation, surface patterns and 3D\ntext. Each of these composes several kernel operations into one call, so look here before\nassembling the same behaviour from primitives.",
41
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.AdvancedAdv",
42
+ "engines": [
43
+ "babylonjs",
44
+ "threejs",
45
+ "playcanvas"
46
+ ],
47
+ "tier": "platform-pro",
48
+ "onApi3d": false,
49
+ "weight": null,
50
+ "examples": []
51
+ },
52
+ {
53
+ "path": "advanced.text3d",
54
+ "kind": "namespace",
55
+ "name": "text3d",
56
+ "className": "Text3D",
57
+ "signature": null,
58
+ "async": false,
59
+ "params": [],
60
+ "returns": null,
61
+ "summary": "",
62
+ "doc": "",
63
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.Text3D",
64
+ "engines": [
65
+ "babylonjs",
66
+ "threejs",
67
+ "playcanvas"
68
+ ],
69
+ "tier": "platform-pro",
70
+ "onApi3d": false,
71
+ "weight": null,
72
+ "examples": []
73
+ },
74
+ {
75
+ "path": "advanced.text3d.create",
76
+ "kind": "method",
77
+ "name": "create",
78
+ "className": "Text3D",
79
+ "signature": "create(inputs: Advanced.Text3D.Text3DDto): Promise<Advanced.Text3D.Text3DData<Inputs.OCCT.TopoDSShapePointer>>",
80
+ "async": true,
81
+ "params": [
82
+ {
83
+ "name": "inputs",
84
+ "type": "Advanced.Text3D.Text3DDto",
85
+ "optional": false,
86
+ "fields": [
87
+ {
88
+ "name": "text",
89
+ "type": "string",
90
+ "optional": false,
91
+ "doc": "The type of font to use",
92
+ "default": "bitbybit.dev"
93
+ },
94
+ {
95
+ "name": "fontType",
96
+ "type": "fontsEnum",
97
+ "optional": false,
98
+ "doc": "The type of font to use",
99
+ "default": "Roboto"
100
+ },
101
+ {
102
+ "name": "fontVariant",
103
+ "type": "fontVariantsEnum",
104
+ "optional": false,
105
+ "doc": "The type of font to use",
106
+ "default": "Regular"
107
+ },
108
+ {
109
+ "name": "fontSize",
110
+ "type": "number",
111
+ "optional": false,
112
+ "doc": "The size of the font",
113
+ "default": 1.5,
114
+ "min": 0,
115
+ "step": 0.1
116
+ },
117
+ {
118
+ "name": "height",
119
+ "type": "number",
120
+ "optional": false,
121
+ "doc": "The height of the font extrusion, if 0 then face will be returned and not a solid",
122
+ "default": 0.2,
123
+ "min": 0,
124
+ "step": 0.1
125
+ },
126
+ {
127
+ "name": "rotation",
128
+ "type": "number",
129
+ "optional": false,
130
+ "doc": "The rotation of the generated text",
131
+ "default": 0,
132
+ "min": 0,
133
+ "step": 15
134
+ },
135
+ {
136
+ "name": "origin",
137
+ "type": "Inputs.Base.Vector3",
138
+ "optional": false,
139
+ "doc": "Origin of the text",
140
+ "default": [
141
+ 0,
142
+ 0,
143
+ 0
144
+ ]
145
+ },
146
+ {
147
+ "name": "direction",
148
+ "type": "Inputs.Base.Vector3",
149
+ "optional": false,
150
+ "doc": "Direction of the text",
151
+ "default": [
152
+ 0,
153
+ 1,
154
+ 0
155
+ ]
156
+ },
157
+ {
158
+ "name": "originAlignment",
159
+ "type": "recAlignmentEnum",
160
+ "optional": false,
161
+ "doc": "Origin alignment",
162
+ "default": "centerMiddle"
163
+ }
164
+ ]
165
+ }
166
+ ],
167
+ "returns": "Advanced.Text3D.Text3DData<Inputs.OCCT.TopoDSShapePointer>",
168
+ "summary": "Creates a 3d text",
169
+ "doc": "Creates a 3d text",
170
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.Text3D#create",
171
+ "engines": [
172
+ "babylonjs",
173
+ "threejs",
174
+ "playcanvas"
175
+ ],
176
+ "tier": "platform-pro",
177
+ "onApi3d": false,
178
+ "weight": null,
179
+ "examples": [],
180
+ "group": "create",
181
+ "drawable": true
182
+ },
183
+ {
184
+ "path": "babylon",
185
+ "kind": "namespace",
186
+ "name": "babylon",
187
+ "className": "Babylon",
188
+ "signature": null,
189
+ "async": false,
190
+ "params": [],
191
+ "returns": null,
192
+ "summary": "The BabylonJS side of the library: everything that lives in the rendered scene rather than in a CAD kernel.",
193
+ "doc": "The BabylonJS side of the library: everything that lives in the rendered scene rather than in a\nCAD kernel. Meshes, nodes, cameras, lights, materials, textures, the scene itself, model import\nand export, picking with rays, on-screen gizmos, the 2D GUI, decals, Gaussian splats and WebXR\nare each behind their own property.",
194
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.Babylon",
195
+ "engines": [
196
+ "babylonjs"
197
+ ],
198
+ "tier": "oss",
199
+ "onApi3d": false,
200
+ "weight": null,
201
+ "examples": []
202
+ },
203
+ {
204
+ "path": "babylon.meshBuilder",
205
+ "kind": "namespace",
206
+ "name": "meshBuilder",
207
+ "className": "BabylonMeshBuilder",
208
+ "signature": null,
209
+ "async": false,
210
+ "params": [],
211
+ "returns": null,
212
+ "summary": "BabylonJS's own mesh primitives, built straight into the scene as ready-to-render meshes rather than through a CAD kernel: boxes, spheres, discs, tori, polygons, tubes, polyhedra, capsules, cylinders, extrusions, ribbons, lathes and grounds.",
213
+ "doc": "BabylonJS's own mesh primitives, built straight into the scene as ready-to-render meshes rather\nthan through a CAD kernel: boxes, spheres, discs, tori, polygons, tubes, polyhedra, capsules,\ncylinders, extrusions, ribbons, lathes and grounds. They are quick to make and cheap to draw but\ncarry no exact geometry, so use the kernels when the shape must be measured, cut or exported.\nEvery builder centers its mesh on the origin, sets `sideOrientation` and registers it for shadows\nunless `enableShadows` is false.",
214
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.BabylonMeshBuilder",
215
+ "engines": [
216
+ "babylonjs"
217
+ ],
218
+ "tier": "oss",
219
+ "onApi3d": false,
220
+ "weight": null,
221
+ "examples": []
222
+ },
223
+ {
224
+ "path": "babylon.meshBuilder.createBox",
225
+ "kind": "method",
226
+ "name": "createBox",
227
+ "className": "BabylonMeshBuilder",
228
+ "signature": "createBox(inputs: Inputs.BabylonMeshBuilder.CreateBoxDto): BABYLON.Mesh",
229
+ "async": false,
230
+ "params": [
231
+ {
232
+ "name": "inputs",
233
+ "type": "Inputs.BabylonMeshBuilder.CreateBoxDto",
234
+ "optional": false,
235
+ "fields": [
236
+ {
237
+ "name": "width",
238
+ "type": "number",
239
+ "optional": false,
240
+ "doc": "Full size along X, in scene units",
241
+ "default": 1
242
+ },
243
+ {
244
+ "name": "depth",
245
+ "type": "number",
246
+ "optional": false,
247
+ "doc": "Full size along Z, in scene units",
248
+ "default": 1
249
+ },
250
+ {
251
+ "name": "height",
252
+ "type": "number",
253
+ "optional": false,
254
+ "doc": "Full size along Y, in scene units",
255
+ "default": 1
256
+ },
257
+ {
258
+ "name": "sideOrientation",
259
+ "type": "BabylonMesh.sideOrientationEnum",
260
+ "optional": false,
261
+ "doc": "Which side of each face is drawn: the front, the back or both; single-sided meshes are\ninvisible from behind",
262
+ "default": "frontside"
263
+ },
264
+ {
265
+ "name": "enableShadows",
266
+ "type": "boolean",
267
+ "optional": false,
268
+ "doc": "When true, the mesh casts and receives shadows from the lights that have them enabled",
269
+ "default": true
270
+ }
271
+ ]
272
+ }
273
+ ],
274
+ "returns": "BABYLON.Mesh",
275
+ "summary": "Builds a box centered on the origin with `width` along X, `height` along Y and `depth` along Z.",
276
+ "doc": "Builds a box centered on the origin with `width` along X, `height` along Y and `depth` along\nZ.",
277
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.BabylonMeshBuilder#createBox",
278
+ "engines": [
279
+ "babylonjs"
280
+ ],
281
+ "tier": "oss",
282
+ "onApi3d": false,
283
+ "weight": null,
284
+ "examples": [
285
+ "babylon.meshBuilder.createBox#1"
286
+ ],
287
+ "group": "create simple",
288
+ "drawable": true
289
+ },
290
+ {
291
+ "path": "cloud.unfold.solidToFlat",
292
+ "kind": "cloud-operation",
293
+ "name": "solidToFlat",
294
+ "className": null,
295
+ "signature": null,
296
+ "async": true,
297
+ "params": [
298
+ {
299
+ "name": "body",
300
+ "type": "object",
301
+ "optional": false,
302
+ "fields": [
303
+ {
304
+ "name": "stepFileId",
305
+ "type": "string",
306
+ "optional": false,
307
+ "doc": "ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically."
308
+ },
309
+ {
310
+ "name": "kFactor",
311
+ "type": "number",
312
+ "optional": false,
313
+ "doc": "Sheet-metal K-factor (neutral-axis position), typically ~0.5.",
314
+ "default": 0.5,
315
+ "min": 0,
316
+ "max": 1
317
+ },
318
+ {
319
+ "name": "thicknessOverride",
320
+ "type": "number",
321
+ "optional": false,
322
+ "doc": "Sheet thickness override in model units; 0 auto-detects thickness from face pairs.",
323
+ "default": 0,
324
+ "min": 0
325
+ },
326
+ {
327
+ "name": "outputs",
328
+ "type": "object",
329
+ "optional": true,
330
+ "doc": "Output formats for the flattened patterns. Every solid's flat is combined into one compound output per format. Defaults to glTF."
331
+ }
332
+ ]
333
+ }
334
+ ],
335
+ "returns": "TaskCreated",
336
+ "summary": "Flatten every constant-thickness sheet-metal solid in an uploaded STEP file to flat patterns.",
337
+ "doc": "Flatten every constant-thickness sheet-metal solid in an uploaded STEP file to flat patterns.",
338
+ "docUrl": null,
339
+ "engines": [],
340
+ "tier": "cloud-pro",
341
+ "onApi3d": true,
342
+ "weight": 5,
343
+ "examples": [],
344
+ "endpoint": "/api/v1/cad/pro/unfold/solid-to-flat",
345
+ "httpMethod": "POST",
346
+ "scope": "cad"
347
+ },
348
+ {
349
+ "path": "draw",
350
+ "kind": "namespace",
351
+ "name": "draw",
352
+ "className": "Draw",
353
+ "signature": null,
354
+ "async": false,
355
+ "params": [],
356
+ "returns": null,
357
+ "summary": "Drawing anything into the scene: kernel shapes, points, lines, polylines, curves, meshes and tags all go through `drawAnyAsync`, which picks the right renderer for the entity and returns the drawn object.",
358
+ "doc": "Drawing anything into the scene: kernel shapes, points, lines, polylines, curves, meshes and tags\nall go through `drawAnyAsync`, which picks the right renderer for the entity and returns the\ndrawn object. The `options` methods build the drawing options with defaults for each kind of\nentity, `createPBRMaterial` and `createTexture` make materials for the face slots, and a drawn\nobject can be redrawn in place by passing it back.",
359
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.Draw",
360
+ "engines": [
361
+ "babylonjs",
362
+ "threejs",
363
+ "playcanvas"
364
+ ],
365
+ "tier": "oss",
366
+ "onApi3d": false,
367
+ "weight": null,
368
+ "examples": []
369
+ },
370
+ {
371
+ "path": "draw.drawAnyAsync",
372
+ "kind": "method",
373
+ "name": "drawAnyAsync",
374
+ "className": "Draw",
375
+ "signature": "drawAnyAsync(inputs: Inputs.Draw.DrawAny<E>): Promise<Inputs.Draw.Drawn<E, BABYLON.Mesh>>",
376
+ "async": true,
377
+ "params": [
378
+ {
379
+ "name": "inputs",
380
+ "type": "Inputs.Draw.DrawAny<E>",
381
+ "optional": false,
382
+ "fields": [
383
+ {
384
+ "name": "entity",
385
+ "type": "E",
386
+ "optional": false,
387
+ "doc": "Entity to be drawn - can be a single or multiple points, lines, polylines, verb curves, verb surfaces, jscad meshes, jscad polygons, jscad paths, occt shapes, tags, nodes"
388
+ },
389
+ {
390
+ "name": "options",
391
+ "type": "DrawOptions",
392
+ "optional": true,
393
+ "doc": "How the drawing looks, matched to the entity: basic options for points, lines, polylines\nand JSCAD meshes, OCCT options for shapes, and so on; left out, defaults are used"
394
+ },
395
+ {
396
+ "name": "babylonMesh",
397
+ "type": "BABYLON.Mesh | BABYLON.LinesMesh",
398
+ "optional": true,
399
+ "doc": "Entity to be used when updating already drawn mesh in the render loop"
400
+ }
401
+ ]
402
+ }
403
+ ],
404
+ "returns": "Inputs.Draw.Drawn<E, BABYLON.Mesh>",
405
+ "summary": "Draws any entity the library produces into the scene and gives back the drawn object: kernel shapes from OCCT, JSCAD and Manifold, points, lines, polylines, curves, meshes, tags and nodes.",
406
+ "doc": "Draws any entity the library produces into the scene and gives back the drawn object: kernel\nshapes from OCCT, JSCAD and Manifold, points, lines, polylines, curves, meshes, tags and\nnodes.\n\nThe options are matched to the entity, with defaults when none are given; pass the previous\nresult back in the update slot to redraw in place.",
407
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.Draw#drawAnyAsync",
408
+ "engines": [
409
+ "babylonjs",
410
+ "threejs",
411
+ "playcanvas"
412
+ ],
413
+ "tier": "oss",
414
+ "onApi3d": false,
415
+ "weight": null,
416
+ "examples": [
417
+ "draw.drawAnyAsync#1"
418
+ ],
419
+ "group": "draw async",
420
+ "drawable": true,
421
+ "engineSignatures": {
422
+ "babylonjs": "drawAnyAsync(inputs: Inputs.Draw.DrawAny<E>): Promise<Inputs.Draw.Drawn<E, BABYLON.Mesh>>",
423
+ "threejs": "drawAnyAsync(inputs: Inputs.Draw.DrawAny<THREEJS.Group, E>): Promise<Inputs.Draw.Drawn<E, THREEJS.Group>>",
424
+ "playcanvas": "drawAnyAsync(inputs: Inputs.Draw.DrawAny<pc.Entity, E>): Promise<Inputs.Draw.Drawn<E, Inputs.Draw.BitByBitEntity>>"
425
+ }
426
+ },
427
+ {
428
+ "path": "math",
429
+ "kind": "namespace",
430
+ "name": "math",
431
+ "className": "MathBitByBit",
432
+ "signature": null,
433
+ "async": false,
434
+ "params": [],
435
+ "returns": null,
436
+ "summary": "Arithmetic, rounding, ranges, random numbers and the trigonometric functions on plain numbers.",
437
+ "doc": "Arithmetic, rounding, ranges, random numbers and the trigonometric functions on plain numbers.\nThe trigonometric functions take and give angles in radians; `degToRad` and `radToDeg` convert at\nthe boundary, because almost every angle a user types is in degrees. The interpolation helpers\n(`lerp`, `remap`, `ease`, `smoothstep`, `pingPong`) are the building blocks of animation and\nparametric variation.",
438
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.MathBitByBit",
439
+ "engines": [
440
+ "babylonjs",
441
+ "threejs",
442
+ "playcanvas"
443
+ ],
444
+ "tier": "oss",
445
+ "onApi3d": false,
446
+ "weight": null,
447
+ "examples": []
448
+ },
449
+ {
450
+ "path": "math.abs",
451
+ "kind": "method",
452
+ "name": "abs",
453
+ "className": "MathBitByBit",
454
+ "signature": "abs(inputs: Inputs.Math.NumberDto): number",
455
+ "async": false,
456
+ "params": [
457
+ {
458
+ "name": "inputs",
459
+ "type": "Inputs.Math.NumberDto",
460
+ "optional": false,
461
+ "fields": [
462
+ {
463
+ "name": "number",
464
+ "type": "number",
465
+ "optional": false,
466
+ "doc": "The number the method works on; for the trigonometric methods an angle in radians.",
467
+ "default": 1,
468
+ "step": 0.1
469
+ }
470
+ ]
471
+ }
472
+ ],
473
+ "returns": "number",
474
+ "summary": "Drops the sign of a number, so the result is never negative.",
475
+ "doc": "Drops the sign of a number, so the result is never negative.\n\nExample: -5 -> 5, 3 -> 3, 0 -> 0",
476
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.MathBitByBit#abs",
477
+ "engines": [
478
+ "babylonjs",
479
+ "threejs",
480
+ "playcanvas"
481
+ ],
482
+ "tier": "oss",
483
+ "onApi3d": true,
484
+ "weight": 1,
485
+ "examples": [],
486
+ "group": "basics"
487
+ },
488
+ {
489
+ "path": "math.acos",
490
+ "kind": "method",
491
+ "name": "acos",
492
+ "className": "MathBitByBit",
493
+ "signature": "acos(inputs: Inputs.Math.NumberDto): number",
494
+ "async": false,
495
+ "params": [
496
+ {
497
+ "name": "inputs",
498
+ "type": "Inputs.Math.NumberDto",
499
+ "optional": false,
500
+ "fields": [
501
+ {
502
+ "name": "number",
503
+ "type": "number",
504
+ "optional": false,
505
+ "doc": "The number the method works on; for the trigonometric methods an angle in radians.",
506
+ "default": 1,
507
+ "step": 0.1
508
+ }
509
+ ]
510
+ }
511
+ ],
512
+ "returns": "number",
513
+ "summary": "Finds the angle, in radians, whose cosine is the given number.",
514
+ "doc": "Finds the angle, in radians, whose cosine is the given number.\n\nExample: 1 -> 0, -1 -> pi (about 3.14)",
515
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.MathBitByBit#acos",
516
+ "engines": [
517
+ "babylonjs",
518
+ "threejs",
519
+ "playcanvas"
520
+ ],
521
+ "tier": "oss",
522
+ "onApi3d": true,
523
+ "weight": 1,
524
+ "examples": [],
525
+ "group": "basics"
526
+ },
527
+ {
528
+ "path": "math.add",
529
+ "kind": "method",
530
+ "name": "add",
531
+ "className": "MathBitByBit",
532
+ "signature": "add(inputs: Inputs.Math.TwoNumbersDto): number",
533
+ "async": false,
534
+ "params": [
535
+ {
536
+ "name": "inputs",
537
+ "type": "Inputs.Math.TwoNumbersDto",
538
+ "optional": false,
539
+ "fields": [
540
+ {
541
+ "name": "first",
542
+ "type": "number",
543
+ "optional": false,
544
+ "doc": "The first operand: the number subtracted from, divided, or raised to a power.",
545
+ "default": 1,
546
+ "step": 0.1
547
+ },
548
+ {
549
+ "name": "second",
550
+ "type": "number",
551
+ "optional": false,
552
+ "doc": "The second operand: the number subtracted, divided by, or used as the exponent.",
553
+ "default": 2,
554
+ "step": 0.1
555
+ }
556
+ ]
557
+ }
558
+ ],
559
+ "returns": "number",
560
+ "summary": "Adds two numbers.",
561
+ "doc": "Adds two numbers.\n\nExample: 5 and 3 -> 8, -2 and 7 -> 5",
562
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.MathBitByBit#add",
563
+ "engines": [
564
+ "babylonjs",
565
+ "threejs",
566
+ "playcanvas"
567
+ ],
568
+ "tier": "oss",
569
+ "onApi3d": true,
570
+ "weight": 1,
571
+ "examples": [
572
+ "math.add#1"
573
+ ],
574
+ "group": "basics"
575
+ },
576
+ {
577
+ "path": "occt",
578
+ "kind": "namespace",
579
+ "name": "occt",
580
+ "className": "OCCT",
581
+ "signature": null,
582
+ "async": false,
583
+ "params": [],
584
+ "returns": null,
585
+ "summary": "The entry point to the OpenCascade kernel: every OCCT feature is reached through one of its properties.",
586
+ "doc": "The entry point to the OpenCascade kernel: every OCCT feature is reached through one of its\nproperties. `shapes` builds and reads vertices, edges, wires, faces, shells, solids and\ncompounds; `operations`, `booleans`, `fillets`, `transforms`, `corners` and `draft` change\nshapes; `geom` handles curves and surfaces; `io` reads and writes STEP, IGES, STL and other\nfiles; `assembly`, `dimensions`, `brepGraph`, `path` and `svg` cover documents, annotations,\ntopology graphs, machining paths and SVG. The methods on the service itself turn shapes into\ntriangle meshes for drawing.",
587
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.OCCT",
588
+ "engines": [
589
+ "babylonjs",
590
+ "threejs",
591
+ "playcanvas"
592
+ ],
593
+ "tier": "oss",
594
+ "onApi3d": false,
595
+ "weight": null,
596
+ "examples": []
597
+ },
598
+ {
599
+ "path": "occt.fillets",
600
+ "kind": "namespace",
601
+ "name": "fillets",
602
+ "className": "OCCTFillets",
603
+ "signature": null,
604
+ "async": false,
605
+ "params": [],
606
+ "returns": null,
607
+ "summary": "Rounding and beveling the edges of OpenCascade shapes: a fillet replaces a sharp edge with a rounded surface of a given radius, a chamfer with a flat bevel of a given distance.",
608
+ "doc": "Rounding and beveling the edges of OpenCascade shapes: a fillet replaces a sharp edge with a\nrounded surface of a given radius, a chamfer with a flat bevel of a given distance. Edges are\nchosen by 0-based index in the order `shapes.edge.getEdges` lists them, or passed in directly;\nflat outlines and faces are rounded at their corners with `fillet2d`, whose corner indexes\nstart at 1. A radius that does not fit, for instance larger than a neighbouring face, makes\nthe kernel fail, so start small. Every method returns a new shape.",
609
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.OCCTFillets",
610
+ "engines": [
611
+ "babylonjs",
612
+ "threejs",
613
+ "playcanvas"
614
+ ],
615
+ "tier": "oss",
616
+ "onApi3d": false,
617
+ "weight": null,
618
+ "examples": []
619
+ },
620
+ {
621
+ "path": "occt.fillets.chamfer2dVertices",
622
+ "kind": "method",
623
+ "name": "chamfer2dVertices",
624
+ "className": "OCCTFillets",
625
+ "signature": "chamfer2dVertices(inputs: Inputs.OCCT.Chamfer2dVertexDto<Inputs.OCCT.TopoDSWirePointer | Inputs.OCCT.TopoDSFacePointer>): Promise<Inputs.OCCT.TopoDSFacePointer | Inputs.OCCT.TopoDSWirePointer>",
626
+ "async": true,
627
+ "params": [
628
+ {
629
+ "name": "inputs",
630
+ "type": "Inputs.OCCT.Chamfer2dVertexDto<Inputs.OCCT.TopoDSWirePointer | Inputs.OCCT.TopoDSFacePointer>",
631
+ "optional": false,
632
+ "fields": [
633
+ {
634
+ "name": "shape",
635
+ "type": "Inputs.OCCT.TopoDSWirePointer | Inputs.OCCT.TopoDSFacePointer",
636
+ "optional": false,
637
+ "doc": "The flat wire or face whose corners are beveled."
638
+ },
639
+ {
640
+ "name": "distance",
641
+ "type": "number",
642
+ "optional": false,
643
+ "doc": "How far the bevel cuts back from each corner along one edge, in model units.",
644
+ "default": 1,
645
+ "step": 0.1
646
+ },
647
+ {
648
+ "name": "angle",
649
+ "type": "number",
650
+ "optional": false,
651
+ "doc": "The angle of the bevel to that edge, in degrees; 45 gives an even chamfer.",
652
+ "default": 45,
653
+ "step": 1
654
+ },
655
+ {
656
+ "name": "indexes",
657
+ "type": "number[]",
658
+ "optional": true,
659
+ "doc": "Which corners to bevel, counted from 1 along the outline; leave it out to bevel them all."
660
+ }
661
+ ]
662
+ }
663
+ ],
664
+ "returns": "Inputs.OCCT.TopoDSFacePointer | Inputs.OCCT.TopoDSWirePointer",
665
+ "summary": "Bevels the corners of a flat wire or face: each corner is cut back by `distance` along one edge, at `angle` degrees to it.",
666
+ "doc": "Bevels the corners of a flat wire or face: each corner is cut back by `distance` along one\nedge, at `angle` degrees to it.\n\nWithout `indexes` every corner is beveled; with them, counted from 1 along the outline, only\nthose corners are.",
667
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.OCCTFillets#chamfer2dVertices",
668
+ "engines": [
669
+ "babylonjs",
670
+ "threejs",
671
+ "playcanvas"
672
+ ],
673
+ "tier": "oss",
674
+ "onApi3d": true,
675
+ "weight": 2,
676
+ "examples": [
677
+ "occt.fillets.chamfer2dVertices#1"
678
+ ],
679
+ "group": "2d fillets",
680
+ "drawable": true
681
+ },
682
+ {
683
+ "path": "occt.fillets.chamferEdgeDistAngle",
684
+ "kind": "method",
685
+ "name": "chamferEdgeDistAngle",
686
+ "className": "OCCTFillets",
687
+ "signature": "chamferEdgeDistAngle(inputs: Inputs.OCCT.ChamferEdgeDistAngleDto<Inputs.OCCT.TopoDSShapePointer, Inputs.OCCT.TopoDSEdgePointer, Inputs.OCCT.TopoDSFacePointer>): Promise<Inputs.OCCT.TopoDSShapePointer>",
688
+ "async": true,
689
+ "params": [
690
+ {
691
+ "name": "inputs",
692
+ "type": "Inputs.OCCT.ChamferEdgeDistAngleDto<Inputs.OCCT.TopoDSShapePointer, Inputs.OCCT.TopoDSEdgePointer, Inputs.OCCT.TopoDSFacePointer>",
693
+ "optional": false,
694
+ "fields": [
695
+ {
696
+ "name": "shape",
697
+ "type": "Inputs.OCCT.TopoDSShapePointer",
698
+ "optional": false,
699
+ "doc": "The shape the edge belongs to."
700
+ },
701
+ {
702
+ "name": "edge",
703
+ "type": "Inputs.OCCT.TopoDSEdgePointer",
704
+ "optional": false,
705
+ "doc": "The edge to bevel."
706
+ },
707
+ {
708
+ "name": "face",
709
+ "type": "Inputs.OCCT.TopoDSFacePointer",
710
+ "optional": false,
711
+ "doc": "One of the two faces meeting at the edge; the distance is measured on it and the angle from\nit."
712
+ },
713
+ {
714
+ "name": "distance",
715
+ "type": "number",
716
+ "optional": false,
717
+ "doc": "How far from the edge the bevel starts on the face, in model units.",
718
+ "default": 0.1,
719
+ "min": 0,
720
+ "step": 0.01
721
+ },
722
+ {
723
+ "name": "angle",
724
+ "type": "number",
725
+ "optional": false,
726
+ "doc": "The slope of the bevel away from the face, in degrees; 45 gives an even chamfer.",
727
+ "default": 45,
728
+ "min": 0,
729
+ "step": 1
730
+ }
731
+ ]
732
+ }
733
+ ],
734
+ "returns": "Inputs.OCCT.TopoDSShapePointer",
735
+ "summary": "Bevels one edge of a shape by a distance measured on `face` and an angle in degrees from that face.",
736
+ "doc": "Bevels one edge of a shape by a distance measured on `face` and an angle in degrees from that\nface.\n\nThe bevel starts `distance` away from the edge on the given face and leaves it at `angle`; 45\ndegrees gives an even chamfer.",
737
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.OCCTFillets#chamferEdgeDistAngle",
738
+ "engines": [
739
+ "babylonjs",
740
+ "threejs",
741
+ "playcanvas"
742
+ ],
743
+ "tier": "oss",
744
+ "onApi3d": true,
745
+ "weight": 2,
746
+ "examples": [
747
+ "occt.fillets.chamferEdgeDistAngle#1"
748
+ ],
749
+ "group": "3d chamfers",
750
+ "drawable": true
751
+ },
752
+ {
753
+ "path": "occt.fillets.chamferEdgeTwoDistances",
754
+ "kind": "method",
755
+ "name": "chamferEdgeTwoDistances",
756
+ "className": "OCCTFillets",
757
+ "signature": "chamferEdgeTwoDistances(inputs: Inputs.OCCT.ChamferEdgeTwoDistancesDto<Inputs.OCCT.TopoDSShapePointer, Inputs.OCCT.TopoDSEdgePointer, Inputs.OCCT.TopoDSFacePointer>): Promise<Inputs.OCCT.TopoDSShapePointer>",
758
+ "async": true,
759
+ "params": [
760
+ {
761
+ "name": "inputs",
762
+ "type": "Inputs.OCCT.ChamferEdgeTwoDistancesDto<Inputs.OCCT.TopoDSShapePointer, Inputs.OCCT.TopoDSEdgePointer, Inputs.OCCT.TopoDSFacePointer>",
763
+ "optional": false,
764
+ "fields": [
765
+ {
766
+ "name": "shape",
767
+ "type": "Inputs.OCCT.TopoDSShapePointer",
768
+ "optional": false,
769
+ "doc": "The shape the edge belongs to."
770
+ },
771
+ {
772
+ "name": "edge",
773
+ "type": "Inputs.OCCT.TopoDSEdgePointer",
774
+ "optional": false,
775
+ "doc": "The edge to bevel."
776
+ },
777
+ {
778
+ "name": "face",
779
+ "type": "Inputs.OCCT.TopoDSFacePointer",
780
+ "optional": false,
781
+ "doc": "One of the two faces meeting at the edge; `distance1` is measured on it."
782
+ },
783
+ {
784
+ "name": "distance1",
785
+ "type": "number",
786
+ "optional": false,
787
+ "doc": "How far the bevel reaches from the edge on `face`, in model units.",
788
+ "default": 0.1,
789
+ "min": 0,
790
+ "step": 0.01
791
+ },
792
+ {
793
+ "name": "distance2",
794
+ "type": "number",
795
+ "optional": false,
796
+ "doc": "How far the bevel reaches from the edge on the other face, in model units.",
797
+ "default": 0.2,
798
+ "min": 0,
799
+ "step": 0.01
800
+ }
801
+ ]
802
+ }
803
+ ],
804
+ "returns": "Inputs.OCCT.TopoDSShapePointer",
805
+ "summary": "Bevels one edge of a shape with an uneven chamfer: `distance1` is measured on `face`, one of the two faces meeting at the edge, and `distance2` on the other.",
806
+ "doc": "Bevels one edge of a shape with an uneven chamfer: `distance1` is measured on `face`, one of\nthe two faces meeting at the edge, and `distance2` on the other.\n\nThe face decides which side gets which distance; swap them to flip the bevel.",
807
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.OCCTFillets#chamferEdgeTwoDistances",
808
+ "engines": [
809
+ "babylonjs",
810
+ "threejs",
811
+ "playcanvas"
812
+ ],
813
+ "tier": "oss",
814
+ "onApi3d": true,
815
+ "weight": 2,
816
+ "examples": [
817
+ "occt.fillets.chamferEdgeTwoDistances#1"
818
+ ],
819
+ "group": "3d chamfers",
820
+ "drawable": true
821
+ },
822
+ {
823
+ "path": "occt.shapes",
824
+ "kind": "namespace",
825
+ "name": "shapes",
826
+ "className": "OCCTShapes",
827
+ "signature": null,
828
+ "async": false,
829
+ "params": [],
830
+ "returns": null,
831
+ "summary": "Shape construction in OpenCascade, grouped by what you are building: vertices, edges, wires, faces, shells, solids and compounds.",
832
+ "doc": "Shape construction in OpenCascade, grouped by what you are building: vertices, edges, wires,\nfaces, shells, solids and compounds. The groups mirror the topological hierarchy, and a normal\nmodelling session climbs it - points become a wire, the wire becomes a face, the face is extruded\ninto a solid. Reach into the group for the kind you want rather than looking for one flat list.",
833
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.OCCTShapes",
834
+ "engines": [
835
+ "babylonjs",
836
+ "threejs",
837
+ "playcanvas"
838
+ ],
839
+ "tier": "oss",
840
+ "onApi3d": false,
841
+ "weight": null,
842
+ "examples": []
843
+ },
844
+ {
845
+ "path": "occt.shapes.solid",
846
+ "kind": "namespace",
847
+ "name": "solid",
848
+ "className": "OCCTSolid",
849
+ "signature": null,
850
+ "async": false,
851
+ "params": [],
852
+ "returns": null,
853
+ "summary": "Solids in OpenCascade: closed shapes that enclose a volume.",
854
+ "doc": "Solids in OpenCascade: closed shapes that enclose a volume. Build one from a primitive\n(`createBox`, `createSphere`, `createCylinder`, `createCone`, `createTorus`), from a flat profile\nextruded front and back (the star, n-gon, heart, beam and other profile solids), or from a closed\nshell with `fromClosedShell`; then measure it with the volume, surface area and center of mass\ngetters, and filter points by whether they lie inside it. Vertices, edges, wires, faces, shells\nand compounds have their own classes beside this one under `shapes`.",
855
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.OCCTSolid",
856
+ "engines": [
857
+ "babylonjs",
858
+ "threejs",
859
+ "playcanvas"
860
+ ],
861
+ "tier": "oss",
862
+ "onApi3d": false,
863
+ "weight": null,
864
+ "examples": []
865
+ },
866
+ {
867
+ "path": "occt.shapes.solid.createBox",
868
+ "kind": "method",
869
+ "name": "createBox",
870
+ "className": "OCCTSolid",
871
+ "signature": "createBox(inputs: Inputs.OCCT.BoxDto): Promise<Inputs.OCCT.TopoDSSolidPointer>",
872
+ "async": true,
873
+ "params": [
874
+ {
875
+ "name": "inputs",
876
+ "type": "Inputs.OCCT.BoxDto",
877
+ "optional": false,
878
+ "fields": [
879
+ {
880
+ "name": "width",
881
+ "type": "number",
882
+ "optional": false,
883
+ "doc": "The side along X, in model units.",
884
+ "default": 1,
885
+ "min": 0,
886
+ "step": 0.1
887
+ },
888
+ {
889
+ "name": "length",
890
+ "type": "number",
891
+ "optional": false,
892
+ "doc": "The side along Z, in model units.",
893
+ "default": 2,
894
+ "min": 0,
895
+ "step": 0.1
896
+ },
897
+ {
898
+ "name": "height",
899
+ "type": "number",
900
+ "optional": false,
901
+ "doc": "The side along Y, which is up, in model units.",
902
+ "default": 3,
903
+ "min": 0,
904
+ "step": 0.1
905
+ },
906
+ {
907
+ "name": "center",
908
+ "type": "Base.Point3",
909
+ "optional": false,
910
+ "doc": "The point the box is centered on, or stands on when `originOnCenter` is false.",
911
+ "default": [
912
+ 0,
913
+ 0,
914
+ 0
915
+ ]
916
+ },
917
+ {
918
+ "name": "originOnCenter",
919
+ "type": "boolean",
920
+ "optional": true,
921
+ "doc": "When true, the box is centered on `center`; when false it stands on it, so `center` is the\nmiddle of the bottom face.",
922
+ "default": true
923
+ }
924
+ ]
925
+ }
926
+ ],
927
+ "returns": "Inputs.OCCT.TopoDSSolidPointer",
928
+ "summary": "Creates a box solid with its sides parallel to the axes.",
929
+ "doc": "Creates a box solid with its sides parallel to the axes.\n\n`width` runs along X, `height` along Y (up) and `length` along Z, all in model units. By\ndefault the box is centered on `center`; with `originOnCenter` set to false it stands on that\npoint instead, so `center` becomes the middle of the bottom face.",
930
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.OCCTSolid#createBox",
931
+ "engines": [
932
+ "babylonjs",
933
+ "threejs",
934
+ "playcanvas"
935
+ ],
936
+ "tier": "oss",
937
+ "onApi3d": true,
938
+ "weight": 2,
939
+ "examples": [
940
+ "occt.shapes.solid.createBox#1"
941
+ ],
942
+ "group": "primitives",
943
+ "drawable": true
944
+ },
945
+ {
946
+ "path": "occt.shapes.solid.createBoxFromCorner",
947
+ "kind": "method",
948
+ "name": "createBoxFromCorner",
949
+ "className": "OCCTSolid",
950
+ "signature": "createBoxFromCorner(inputs: Inputs.OCCT.BoxFromCornerDto): Promise<Inputs.OCCT.TopoDSSolidPointer>",
951
+ "async": true,
952
+ "params": [
953
+ {
954
+ "name": "inputs",
955
+ "type": "Inputs.OCCT.BoxFromCornerDto",
956
+ "optional": false,
957
+ "fields": [
958
+ {
959
+ "name": "width",
960
+ "type": "number",
961
+ "optional": false,
962
+ "doc": "The side along X, in model units.",
963
+ "default": 1,
964
+ "min": 0,
965
+ "step": 0.1
966
+ },
967
+ {
968
+ "name": "length",
969
+ "type": "number",
970
+ "optional": false,
971
+ "doc": "The side along Z, in model units.",
972
+ "default": 2,
973
+ "min": 0,
974
+ "step": 0.1
975
+ },
976
+ {
977
+ "name": "height",
978
+ "type": "number",
979
+ "optional": false,
980
+ "doc": "The side along Y, which is up, in model units.",
981
+ "default": 3,
982
+ "min": 0,
983
+ "step": 0.1
984
+ },
985
+ {
986
+ "name": "corner",
987
+ "type": "Base.Point3",
988
+ "optional": false,
989
+ "doc": "The corner with the smallest X, Y and Z; the box extends from it along the positive axes.",
990
+ "default": [
991
+ 0,
992
+ 0,
993
+ 0
994
+ ]
995
+ }
996
+ ]
997
+ }
998
+ ],
999
+ "returns": "Inputs.OCCT.TopoDSSolidPointer",
1000
+ "summary": "Creates a box solid that starts at a corner point and extends along the positive axes.",
1001
+ "doc": "Creates a box solid that starts at a corner point and extends along the positive axes.\n\nThe corner with the smallest x, y and z sits at `corner`; the box reaches `width` along X,\n`height` along Y and `length` along Z from there, all in model units.",
1002
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.OCCTSolid#createBoxFromCorner",
1003
+ "engines": [
1004
+ "babylonjs",
1005
+ "threejs",
1006
+ "playcanvas"
1007
+ ],
1008
+ "tier": "oss",
1009
+ "onApi3d": true,
1010
+ "weight": 2,
1011
+ "examples": [
1012
+ "occt.shapes.solid.createBoxFromCorner#1"
1013
+ ],
1014
+ "group": "primitives",
1015
+ "drawable": true,
1016
+ "cloudSummary": "On CAD Cloud the corner is given as three numbers.",
1017
+ "cloudParams": [
1018
+ {
1019
+ "name": "inputs",
1020
+ "type": "object",
1021
+ "optional": false,
1022
+ "fields": [
1023
+ {
1024
+ "name": "corner",
1025
+ "type": "number[]",
1026
+ "optional": false,
1027
+ "doc": "The corner as [x, y, z]",
1028
+ "default": [
1029
+ 0,
1030
+ 0,
1031
+ 0
1032
+ ]
1033
+ },
1034
+ {
1035
+ "name": "width",
1036
+ "type": "number",
1037
+ "optional": true,
1038
+ "doc": "The side along X",
1039
+ "default": 1
1040
+ }
1041
+ ]
1042
+ }
1043
+ ]
1044
+ },
1045
+ {
1046
+ "path": "occt.shapes.solid.createChristmasTreeSolid",
1047
+ "kind": "method",
1048
+ "name": "createChristmasTreeSolid",
1049
+ "className": "OCCTSolid",
1050
+ "signature": "createChristmasTreeSolid(inputs: Inputs.OCCT.ChristmasTreeSolidDto): Promise<Inputs.OCCT.TopoDSSolidPointer>",
1051
+ "async": true,
1052
+ "params": [
1053
+ {
1054
+ "name": "inputs",
1055
+ "type": "Inputs.OCCT.ChristmasTreeSolidDto",
1056
+ "optional": false,
1057
+ "fields": [
1058
+ {
1059
+ "name": "height",
1060
+ "type": "number",
1061
+ "optional": false,
1062
+ "doc": "The height of the tree without the trunk, in model units.",
1063
+ "default": 6,
1064
+ "min": 0,
1065
+ "step": 0.1
1066
+ },
1067
+ {
1068
+ "name": "innerDist",
1069
+ "type": "number",
1070
+ "optional": false,
1071
+ "doc": "How far the branches reach from the trunk line at the notches of the lowest skirt, in model\nunits.",
1072
+ "default": 1.5,
1073
+ "min": 0,
1074
+ "step": 0.1
1075
+ },
1076
+ {
1077
+ "name": "outerDist",
1078
+ "type": "number",
1079
+ "optional": false,
1080
+ "doc": "How far the branches reach from the trunk line at the tips of the lowest skirt, in model\nunits.",
1081
+ "default": 3,
1082
+ "min": 0,
1083
+ "step": 0.1
1084
+ },
1085
+ {
1086
+ "name": "nrSkirts",
1087
+ "type": "number",
1088
+ "optional": false,
1089
+ "doc": "How many layers of branches, the triangle-like skirts, the tree has.",
1090
+ "default": 5,
1091
+ "min": 1,
1092
+ "step": 1
1093
+ },
1094
+ {
1095
+ "name": "trunkHeight",
1096
+ "type": "number",
1097
+ "optional": false,
1098
+ "doc": "The height of the trunk below the branches, in model units; 0 leaves the trunk out.",
1099
+ "default": 1,
1100
+ "min": 0,
1101
+ "step": 0.1
1102
+ },
1103
+ {
1104
+ "name": "trunkWidth",
1105
+ "type": "number",
1106
+ "optional": false,
1107
+ "doc": "The width of the trunk, in model units; used only when the trunk height is above 0.",
1108
+ "default": 1,
1109
+ "min": 0,
1110
+ "step": 0.1
1111
+ },
1112
+ {
1113
+ "name": "half",
1114
+ "type": "boolean",
1115
+ "optional": false,
1116
+ "doc": "When true, only one side of the tree is built, as an open wire.",
1117
+ "default": false
1118
+ },
1119
+ {
1120
+ "name": "rotation",
1121
+ "type": "number",
1122
+ "optional": false,
1123
+ "doc": "How far the tree is spun about its trunk-to-tip axis, in degrees.",
1124
+ "default": 0,
1125
+ "min": 0,
1126
+ "step": 15
1127
+ },
1128
+ {
1129
+ "name": "origin",
1130
+ "type": "Base.Point3",
1131
+ "optional": false,
1132
+ "doc": "The point at the base of the trunk.",
1133
+ "default": [
1134
+ 0,
1135
+ 0,
1136
+ 0
1137
+ ]
1138
+ },
1139
+ {
1140
+ "name": "direction",
1141
+ "type": "Base.Vector3",
1142
+ "optional": false,
1143
+ "doc": "The direction from the trunk to the tip; the default stands the tree up along Y.",
1144
+ "default": [
1145
+ 0,
1146
+ 1,
1147
+ 0
1148
+ ]
1149
+ },
1150
+ {
1151
+ "name": "extrusionLengthFront",
1152
+ "type": "number",
1153
+ "optional": false,
1154
+ "doc": "How far the tree grows along its plane normal, in model units.",
1155
+ "default": 1,
1156
+ "min": 0,
1157
+ "step": 0.1
1158
+ },
1159
+ {
1160
+ "name": "extrusionLengthBack",
1161
+ "type": "number",
1162
+ "optional": false,
1163
+ "doc": "How far the tree grows against its plane normal, in model units.",
1164
+ "default": 0,
1165
+ "min": 0,
1166
+ "step": 0.1
1167
+ }
1168
+ ]
1169
+ }
1170
+ ],
1171
+ "returns": "Inputs.OCCT.TopoDSSolidPointer",
1172
+ "summary": "Creates a Christmas tree-shaped solid by extruding a flat tree profile forward and backward along its own normal.",
1173
+ "doc": "Creates a Christmas tree-shaped solid by extruding a flat tree profile forward and backward\nalong its own normal.\n\n`extrusionLengthFront` and `extrusionLengthBack` say how far it grows each way, in model\nunits; at least one must be above 0 or an error is thrown.",
1174
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.OCCTSolid#createChristmasTreeSolid",
1175
+ "engines": [
1176
+ "babylonjs",
1177
+ "threejs",
1178
+ "playcanvas"
1179
+ ],
1180
+ "tier": "oss",
1181
+ "onApi3d": true,
1182
+ "weight": 2,
1183
+ "examples": [
1184
+ "occt.shapes.solid.createChristmasTreeSolid#1"
1185
+ ],
1186
+ "group": "primitives",
1187
+ "drawable": true
1188
+ },
1189
+ {
1190
+ "path": "occt.shapes.solid.createCone",
1191
+ "kind": "method",
1192
+ "name": "createCone",
1193
+ "className": "OCCTSolid",
1194
+ "signature": "createCone(inputs: Inputs.OCCT.ConeDto): Promise<Inputs.OCCT.TopoDSSolidPointer>",
1195
+ "async": true,
1196
+ "params": [
1197
+ {
1198
+ "name": "inputs",
1199
+ "type": "Inputs.OCCT.ConeDto",
1200
+ "optional": false,
1201
+ "fields": [
1202
+ {
1203
+ "name": "radius1",
1204
+ "type": "number",
1205
+ "optional": false,
1206
+ "doc": "The radius of the base at `center`, in model units.",
1207
+ "default": 2,
1208
+ "min": 0,
1209
+ "step": 0.1
1210
+ },
1211
+ {
1212
+ "name": "radius2",
1213
+ "type": "number",
1214
+ "optional": false,
1215
+ "doc": "The radius at the top, in model units; 0 makes a pointed cone.",
1216
+ "default": 1,
1217
+ "min": 0,
1218
+ "step": 0.1
1219
+ },
1220
+ {
1221
+ "name": "height",
1222
+ "type": "number",
1223
+ "optional": false,
1224
+ "doc": "The distance from the base to the top along `direction`, in model units.",
1225
+ "default": 2,
1226
+ "min": 0,
1227
+ "step": 0.1
1228
+ },
1229
+ {
1230
+ "name": "angle",
1231
+ "type": "number",
1232
+ "optional": false,
1233
+ "doc": "How much of the full round to build, in degrees; less than 360 cuts a wedge out.",
1234
+ "default": 360,
1235
+ "min": 0,
1236
+ "max": 360,
1237
+ "step": 1
1238
+ },
1239
+ {
1240
+ "name": "center",
1241
+ "type": "Base.Point3",
1242
+ "optional": false,
1243
+ "doc": "The center of the base.",
1244
+ "default": [
1245
+ 0,
1246
+ 0,
1247
+ 0
1248
+ ]
1249
+ },
1250
+ {
1251
+ "name": "direction",
1252
+ "type": "Base.Point3",
1253
+ "optional": false,
1254
+ "doc": "The direction from the base to the top.",
1255
+ "default": [
1256
+ 0,
1257
+ 1,
1258
+ 0
1259
+ ]
1260
+ }
1261
+ ]
1262
+ }
1263
+ ],
1264
+ "returns": "Inputs.OCCT.TopoDSSolidPointer",
1265
+ "summary": "Creates a cone solid, or a truncated cone when both radii are above 0, standing on a round base at `center` and growing `height` along `direction`.",
1266
+ "doc": "Creates a cone solid, or a truncated cone when both radii are above 0, standing on a round\nbase at `center` and growing `height` along `direction`.\n\n`radius1` is the base and `radius2` the top; a top radius of 0 makes a pointed cone. `angle`,\nin degrees, cuts a wedge out of the full 360 degree round.",
1267
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.OCCTSolid#createCone",
1268
+ "engines": [
1269
+ "babylonjs",
1270
+ "threejs",
1271
+ "playcanvas"
1272
+ ],
1273
+ "tier": "oss",
1274
+ "onApi3d": true,
1275
+ "weight": 2,
1276
+ "examples": [
1277
+ "occt.shapes.solid.createCone#1"
1278
+ ],
1279
+ "group": "primitives",
1280
+ "drawable": true
1281
+ },
1282
+ {
1283
+ "path": "occt.shapes.solid.createCube",
1284
+ "kind": "method",
1285
+ "name": "createCube",
1286
+ "className": "OCCTSolid",
1287
+ "signature": "createCube(inputs: Inputs.OCCT.CubeDto): Promise<Inputs.OCCT.TopoDSSolidPointer>",
1288
+ "async": true,
1289
+ "params": [
1290
+ {
1291
+ "name": "inputs",
1292
+ "type": "Inputs.OCCT.CubeDto",
1293
+ "optional": false,
1294
+ "fields": [
1295
+ {
1296
+ "name": "size",
1297
+ "type": "number",
1298
+ "optional": false,
1299
+ "doc": "The length of every side, in model units.",
1300
+ "default": 1,
1301
+ "min": 0,
1302
+ "step": 0.1
1303
+ },
1304
+ {
1305
+ "name": "center",
1306
+ "type": "Base.Point3",
1307
+ "optional": false,
1308
+ "doc": "The point the cube is centered on, or stands on when `originOnCenter` is false.",
1309
+ "default": [
1310
+ 0,
1311
+ 0,
1312
+ 0
1313
+ ]
1314
+ },
1315
+ {
1316
+ "name": "originOnCenter",
1317
+ "type": "boolean",
1318
+ "optional": true,
1319
+ "doc": "When true, the cube is centered on `center`; when false it stands on it, so `center` is the\nmiddle of the bottom face.",
1320
+ "default": true
1321
+ }
1322
+ ]
1323
+ }
1324
+ ],
1325
+ "returns": "Inputs.OCCT.TopoDSSolidPointer",
1326
+ "summary": "Creates a cube solid, a box with all three sides the same size, parallel to the axes.",
1327
+ "doc": "Creates a cube solid, a box with all three sides the same size, parallel to the axes.\n\nBy default the cube is centered on `center`; with `originOnCenter` set to false it stands on\nthat point instead, so `center` becomes the middle of the bottom face.",
1328
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.OCCTSolid#createCube",
1329
+ "engines": [
1330
+ "babylonjs",
1331
+ "threejs",
1332
+ "playcanvas"
1333
+ ],
1334
+ "tier": "oss",
1335
+ "onApi3d": true,
1336
+ "weight": 2,
1337
+ "examples": [
1338
+ "occt.shapes.solid.createCube#1"
1339
+ ],
1340
+ "group": "primitives",
1341
+ "drawable": true
1342
+ },
1343
+ {
1344
+ "path": "occt.shapes.solid.createCylinder",
1345
+ "kind": "method",
1346
+ "name": "createCylinder",
1347
+ "className": "OCCTSolid",
1348
+ "signature": "createCylinder(inputs: Inputs.OCCT.CylinderDto): Promise<Inputs.OCCT.TopoDSSolidPointer>",
1349
+ "async": true,
1350
+ "params": [
1351
+ {
1352
+ "name": "inputs",
1353
+ "type": "Inputs.OCCT.CylinderDto",
1354
+ "optional": false,
1355
+ "fields": [
1356
+ {
1357
+ "name": "radius",
1358
+ "type": "number",
1359
+ "optional": false,
1360
+ "doc": "The radius of the round base, in model units.",
1361
+ "default": 1,
1362
+ "min": 0,
1363
+ "step": 0.1
1364
+ },
1365
+ {
1366
+ "name": "height",
1367
+ "type": "number",
1368
+ "optional": false,
1369
+ "doc": "How far the cylinder grows from its base along `direction`, in model units.",
1370
+ "default": 2,
1371
+ "min": 0,
1372
+ "step": 0.1
1373
+ },
1374
+ {
1375
+ "name": "center",
1376
+ "type": "Base.Point3",
1377
+ "optional": false,
1378
+ "doc": "The center of the base, or the middle of the cylinder when `originOnCenter` is true.",
1379
+ "default": [
1380
+ 0,
1381
+ 0,
1382
+ 0
1383
+ ]
1384
+ },
1385
+ {
1386
+ "name": "direction",
1387
+ "type": "Base.Vector3",
1388
+ "optional": true,
1389
+ "doc": "The direction the cylinder grows in; the default stands it up along Y.",
1390
+ "default": [
1391
+ 0,
1392
+ 1,
1393
+ 0
1394
+ ]
1395
+ },
1396
+ {
1397
+ "name": "angle",
1398
+ "type": "number",
1399
+ "optional": true,
1400
+ "doc": "How much of the full round to build, in degrees; less than 360 cuts a wedge out, like a slice\nof cake.",
1401
+ "default": 360,
1402
+ "min": 0,
1403
+ "step": 1
1404
+ },
1405
+ {
1406
+ "name": "originOnCenter",
1407
+ "type": "boolean",
1408
+ "optional": true,
1409
+ "doc": "When true, the cylinder is shifted back by half its height so `center` sits in its middle.",
1410
+ "default": false
1411
+ }
1412
+ ]
1413
+ }
1414
+ ],
1415
+ "returns": "Inputs.OCCT.TopoDSSolidPointer",
1416
+ "summary": "Creates a cylinder solid with a round base at `center`, growing `height` along `direction`.",
1417
+ "doc": "Creates a cylinder solid with a round base at `center`, growing `height` along `direction`.\n\nWith `originOnCenter` on, the cylinder is shifted back by half its height so `center` sits in\nits middle. `angle`, in degrees, cuts a wedge out of the full 360 degree round, like a slice\nof cake.",
1418
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.OCCTSolid#createCylinder",
1419
+ "engines": [
1420
+ "babylonjs",
1421
+ "threejs",
1422
+ "playcanvas"
1423
+ ],
1424
+ "tier": "oss",
1425
+ "onApi3d": true,
1426
+ "weight": 2,
1427
+ "examples": [
1428
+ "occt.shapes.solid.createCylinder#1"
1429
+ ],
1430
+ "group": "primitives",
1431
+ "drawable": true
1432
+ },
1433
+ {
1434
+ "path": "occt.shapes.solid.createCylindersOnLines",
1435
+ "kind": "method",
1436
+ "name": "createCylindersOnLines",
1437
+ "className": "OCCTSolid",
1438
+ "signature": "createCylindersOnLines(inputs: Inputs.OCCT.CylindersOnLinesDto): Promise<Inputs.OCCT.TopoDSSolidPointer[]>",
1439
+ "async": true,
1440
+ "params": [
1441
+ {
1442
+ "name": "inputs",
1443
+ "type": "Inputs.OCCT.CylindersOnLinesDto",
1444
+ "optional": false,
1445
+ "fields": [
1446
+ {
1447
+ "name": "radius",
1448
+ "type": "number",
1449
+ "optional": false,
1450
+ "doc": "The radius shared by every cylinder, in model units.",
1451
+ "default": 1,
1452
+ "min": 0,
1453
+ "step": 0.1
1454
+ },
1455
+ {
1456
+ "name": "lines",
1457
+ "type": "Base.Line3[]",
1458
+ "optional": false,
1459
+ "doc": "The lines the cylinders follow, each from its start to its end."
1460
+ }
1461
+ ]
1462
+ }
1463
+ ],
1464
+ "returns": "Inputs.OCCT.TopoDSSolidPointer[]",
1465
+ "summary": "Creates one cylinder solid along each line, from its start to its end, all with the same radius.",
1466
+ "doc": "Creates one cylinder solid along each line, from its start to its end, all with the same\nradius.\n\nThe height of each cylinder is the length of its line.",
1467
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.OCCTSolid#createCylindersOnLines",
1468
+ "engines": [
1469
+ "babylonjs",
1470
+ "threejs",
1471
+ "playcanvas"
1472
+ ],
1473
+ "tier": "oss",
1474
+ "onApi3d": true,
1475
+ "weight": 2,
1476
+ "examples": [
1477
+ "occt.shapes.solid.createCylindersOnLines#1"
1478
+ ],
1479
+ "group": "primitives",
1480
+ "drawable": true
1481
+ },
1482
+ {
1483
+ "path": "occt.shapes.solid.createHBeamProfileSolid",
1484
+ "kind": "method",
1485
+ "name": "createHBeamProfileSolid",
1486
+ "className": "OCCTSolid",
1487
+ "signature": "createHBeamProfileSolid(inputs: Inputs.OCCT.HBeamProfileSolidDto): Promise<Inputs.OCCT.TopoDSSolidPointer>",
1488
+ "async": true,
1489
+ "params": [
1490
+ {
1491
+ "name": "inputs",
1492
+ "type": "Inputs.OCCT.HBeamProfileSolidDto",
1493
+ "optional": false,
1494
+ "fields": [
1495
+ {
1496
+ "name": "width",
1497
+ "type": "number",
1498
+ "optional": false,
1499
+ "doc": "The total width of the profile, in model units.",
1500
+ "default": 2,
1501
+ "min": 0,
1502
+ "step": 0.1
1503
+ },
1504
+ {
1505
+ "name": "height",
1506
+ "type": "number",
1507
+ "optional": false,
1508
+ "doc": "The height of the flanges, in model units.",
1509
+ "default": 3,
1510
+ "min": 0,
1511
+ "step": 0.1
1512
+ },
1513
+ {
1514
+ "name": "webThickness",
1515
+ "type": "number",
1516
+ "optional": false,
1517
+ "doc": "The thickness of the horizontal web, in model units.",
1518
+ "default": 0.2,
1519
+ "min": 0,
1520
+ "step": 0.01
1521
+ },
1522
+ {
1523
+ "name": "flangeThickness",
1524
+ "type": "number",
1525
+ "optional": false,
1526
+ "doc": "The thickness of each vertical flange, in model units.",
1527
+ "default": 0.3,
1528
+ "min": 0,
1529
+ "step": 0.01
1530
+ },
1531
+ {
1532
+ "name": "alignment",
1533
+ "type": "Base.basicAlignmentEnum",
1534
+ "optional": false,
1535
+ "doc": "Which point of the profile's bounding box sits on `center`, such as its middle or its top\nleft corner.",
1536
+ "default": "midMid"
1537
+ },
1538
+ {
1539
+ "name": "rotation",
1540
+ "type": "number",
1541
+ "optional": false,
1542
+ "doc": "How far the profile is turned in its plane, in degrees.",
1543
+ "default": 0,
1544
+ "min": 0,
1545
+ "step": 15
1546
+ },
1547
+ {
1548
+ "name": "center",
1549
+ "type": "Base.Point3",
1550
+ "optional": false,
1551
+ "doc": "The point the profile is placed at.",
1552
+ "default": [
1553
+ 0,
1554
+ 0,
1555
+ 0
1556
+ ]
1557
+ },
1558
+ {
1559
+ "name": "direction",
1560
+ "type": "Base.Vector3",
1561
+ "optional": false,
1562
+ "doc": "The normal of the plane the profile lies in; the default lays it flat on the ground.",
1563
+ "default": [
1564
+ 0,
1565
+ 1,
1566
+ 0
1567
+ ]
1568
+ },
1569
+ {
1570
+ "name": "extrusionLengthFront",
1571
+ "type": "number",
1572
+ "optional": false,
1573
+ "doc": "How far the profile grows along its normal, in model units.",
1574
+ "default": 1,
1575
+ "min": 0,
1576
+ "step": 0.1
1577
+ },
1578
+ {
1579
+ "name": "extrusionLengthBack",
1580
+ "type": "number",
1581
+ "optional": false,
1582
+ "doc": "How far the profile grows against its normal, in model units.",
1583
+ "default": 0,
1584
+ "min": 0,
1585
+ "step": 0.1
1586
+ }
1587
+ ]
1588
+ }
1589
+ ],
1590
+ "returns": "Inputs.OCCT.TopoDSSolidPointer",
1591
+ "summary": "Creates an H-beam by extruding its flat profile forward and backward along its own normal.",
1592
+ "doc": "Creates an H-beam by extruding its flat profile forward and backward along its own normal.\n\n`extrusionLengthFront` and `extrusionLengthBack` say how far it grows each way, in model\nunits; at least one must be above 0 or an error is thrown.",
1593
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.OCCTSolid#createHBeamProfileSolid",
1594
+ "engines": [
1595
+ "babylonjs",
1596
+ "threejs",
1597
+ "playcanvas"
1598
+ ],
1599
+ "tier": "oss",
1600
+ "onApi3d": true,
1601
+ "weight": 2,
1602
+ "examples": [
1603
+ "occt.shapes.solid.createHBeamProfileSolid#1"
1604
+ ],
1605
+ "group": "beam",
1606
+ "drawable": true
1607
+ },
1608
+ {
1609
+ "path": "occt.shapes.solid.createSphere",
1610
+ "kind": "method",
1611
+ "name": "createSphere",
1612
+ "className": "OCCTSolid",
1613
+ "signature": "createSphere(inputs: Inputs.OCCT.SphereDto): Promise<Inputs.OCCT.TopoDSSolidPointer>",
1614
+ "async": true,
1615
+ "params": [
1616
+ {
1617
+ "name": "inputs",
1618
+ "type": "Inputs.OCCT.SphereDto",
1619
+ "optional": false,
1620
+ "fields": [
1621
+ {
1622
+ "name": "radius",
1623
+ "type": "number",
1624
+ "optional": false,
1625
+ "doc": "The distance from the center to the surface, in model units.",
1626
+ "default": 1,
1627
+ "min": 0,
1628
+ "step": 0.1
1629
+ },
1630
+ {
1631
+ "name": "center",
1632
+ "type": "Base.Point3",
1633
+ "optional": false,
1634
+ "doc": "The point the sphere is centered on.",
1635
+ "default": [
1636
+ 0,
1637
+ 0,
1638
+ 0
1639
+ ]
1640
+ }
1641
+ ]
1642
+ }
1643
+ ],
1644
+ "returns": "Inputs.OCCT.TopoDSSolidPointer",
1645
+ "summary": "Creates a sphere solid of the given radius around a center point.",
1646
+ "doc": "Creates a sphere solid of the given radius around a center point.",
1647
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.OCCTSolid#createSphere",
1648
+ "engines": [
1649
+ "babylonjs",
1650
+ "threejs",
1651
+ "playcanvas"
1652
+ ],
1653
+ "tier": "oss",
1654
+ "onApi3d": true,
1655
+ "weight": 2,
1656
+ "examples": [
1657
+ "occt.shapes.solid.createSphere#1"
1658
+ ],
1659
+ "group": "primitives",
1660
+ "drawable": true
1661
+ },
1662
+ {
1663
+ "path": "occtPro",
1664
+ "kind": "namespace",
1665
+ "name": "occtPro",
1666
+ "className": null,
1667
+ "signature": null,
1668
+ "async": false,
1669
+ "params": [],
1670
+ "returns": null,
1671
+ "summary": "Pro OCCT algorithms that run on CAD Cloud as pipeline steps",
1672
+ "doc": "Pro OCCT algorithms that run on CAD Cloud as pipeline steps",
1673
+ "docUrl": null,
1674
+ "engines": [],
1675
+ "tier": "cloud-pro",
1676
+ "onApi3d": false,
1677
+ "weight": null,
1678
+ "examples": []
1679
+ },
1680
+ {
1681
+ "path": "occtPro.sheetMetal",
1682
+ "kind": "namespace",
1683
+ "name": "sheetMetal",
1684
+ "className": null,
1685
+ "signature": null,
1686
+ "async": false,
1687
+ "params": [],
1688
+ "returns": null,
1689
+ "summary": "Sheet-metal unfolding as pipeline steps",
1690
+ "doc": "Sheet-metal unfolding as pipeline steps",
1691
+ "docUrl": null,
1692
+ "engines": [],
1693
+ "tier": "cloud-pro",
1694
+ "onApi3d": false,
1695
+ "weight": null,
1696
+ "examples": []
1697
+ },
1698
+ {
1699
+ "path": "occtPro.sheetMetal.unfoldSolidToFlat",
1700
+ "kind": "cloud-operation",
1701
+ "name": "unfoldSolidToFlat",
1702
+ "className": null,
1703
+ "signature": null,
1704
+ "async": true,
1705
+ "params": [
1706
+ {
1707
+ "name": "inputs",
1708
+ "type": "object",
1709
+ "optional": false,
1710
+ "fields": [
1711
+ {
1712
+ "name": "shape",
1713
+ "type": "shape",
1714
+ "optional": false,
1715
+ "doc": "Constant-thickness sheet-metal solid to flatten"
1716
+ },
1717
+ {
1718
+ "name": "kFactor",
1719
+ "type": "number",
1720
+ "optional": false,
1721
+ "doc": "Neutral-axis K-factor (~0.5)",
1722
+ "default": 0.5,
1723
+ "min": 0,
1724
+ "max": 1,
1725
+ "step": 0.01
1726
+ },
1727
+ {
1728
+ "name": "thicknessOverride",
1729
+ "type": "number",
1730
+ "optional": false,
1731
+ "doc": "Sheet thickness; 0 auto-detects from face pairs",
1732
+ "default": 0,
1733
+ "min": 0
1734
+ }
1735
+ ]
1736
+ }
1737
+ ],
1738
+ "returns": "TopoDS_Shape",
1739
+ "summary": "Flatten a constant-thickness sheet-metal solid",
1740
+ "doc": "Flatten a constant-thickness sheet-metal solid",
1741
+ "docUrl": null,
1742
+ "engines": [],
1743
+ "tier": "cloud-pro",
1744
+ "onApi3d": true,
1745
+ "weight": 5,
1746
+ "examples": [],
1747
+ "endpoint": "/api/v1/cad/pipeline",
1748
+ "httpMethod": "POST",
1749
+ "scope": "cad"
1750
+ },
1751
+ {
1752
+ "path": "verb",
1753
+ "kind": "namespace",
1754
+ "name": "verb",
1755
+ "className": "Verb",
1756
+ "signature": null,
1757
+ "async": false,
1758
+ "params": [],
1759
+ "returns": null,
1760
+ "summary": "NURBS curves and surfaces.",
1761
+ "doc": "NURBS curves and surfaces.",
1762
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.Verb",
1763
+ "engines": [
1764
+ "babylonjs",
1765
+ "threejs",
1766
+ "playcanvas"
1767
+ ],
1768
+ "tier": "oss",
1769
+ "onApi3d": false,
1770
+ "weight": null,
1771
+ "examples": [],
1772
+ "deprecated": "Verbnurbs is not maintained upstream and this API is removed in the next major\nversion. Use the OpenCascade (occt) NURBS operations instead. Existing scripts keep working\nuntil the removal."
1773
+ },
1774
+ {
1775
+ "path": "verb.curve",
1776
+ "kind": "namespace",
1777
+ "name": "curve",
1778
+ "className": "VerbCurve",
1779
+ "signature": null,
1780
+ "async": false,
1781
+ "params": [],
1782
+ "returns": null,
1783
+ "summary": "Contains various methods for nurbs curves.",
1784
+ "doc": "Contains various methods for nurbs curves.\nThese methods wrap around Verbnurbs library that you can find here http://verbnurbs.com/.\nThanks Peter Boyer for his work.",
1785
+ "docUrl": "https://docs.bitbybit.dev/classes/Bit.VerbCurve",
1786
+ "engines": [
1787
+ "babylonjs",
1788
+ "threejs",
1789
+ "playcanvas"
1790
+ ],
1791
+ "tier": "oss",
1792
+ "onApi3d": false,
1793
+ "weight": null,
1794
+ "examples": [],
1795
+ "deprecated": ""
1796
+ }
1797
+ ],
1798
+ "enums": {
1799
+ "Advanced.Dimensions.ordinateAxisEnum": {
1800
+ "name": "ordinateAxisEnum",
1801
+ "summary": "Which axis an ordinate dimension measures along: x, y or z.",
1802
+ "values": [
1803
+ {
1804
+ "key": "x",
1805
+ "value": "x"
1806
+ },
1807
+ {
1808
+ "key": "y",
1809
+ "value": "y"
1810
+ },
1811
+ {
1812
+ "key": "z",
1813
+ "value": "z"
1814
+ }
1815
+ ]
1816
+ },
1817
+ "Advanced.Enums.outputShapeEnum": {
1818
+ "name": "outputShapeEnum",
1819
+ "summary": "What an advanced operation should hand back: a wire, meaning the outline only; a face, meaning the outline filled; or a solid, meaning the face given thickness.",
1820
+ "values": [
1821
+ {
1822
+ "key": "wire",
1823
+ "value": "wire"
1824
+ },
1825
+ {
1826
+ "key": "face",
1827
+ "value": "face"
1828
+ },
1829
+ {
1830
+ "key": "solid",
1831
+ "value": "solid"
1832
+ }
1833
+ ]
1834
+ },
1835
+ "Advanced.Text3D.faceTextVarEnum": {
1836
+ "name": "faceTextVarEnum",
1837
+ "summary": "How 3D text relates to the surface it sits on.",
1838
+ "values": [
1839
+ {
1840
+ "key": "separatedExtrusion",
1841
+ "value": "separatedExtrusion"
1842
+ },
1843
+ {
1844
+ "key": "integratedExtrusion",
1845
+ "value": "integratedExtrusion"
1846
+ },
1847
+ {
1848
+ "key": "cutout",
1849
+ "value": "cutout"
1850
+ }
1851
+ ]
1852
+ }
1853
+ },
1854
+ "examples": {
1855
+ "babylon.meshBuilder.createBox#1": {
1856
+ "path": "babylon.meshBuilder.createBox",
1857
+ "code": "const box = bitbybit.babylon.meshBuilder.createBox({ width: 10, height: 5, depth: 20, sideOrientation: Bit.Inputs.BabylonMesh.sideOrientationEnum.frontside, enableShadows: true });"
1858
+ },
1859
+ "draw.drawAnyAsync#1": {
1860
+ "path": "draw.drawAnyAsync",
1861
+ "code": "const box = await bitbybit.occt.shapes.solid.createBox({ width: 10, length: 10, height: 10, center: [0, 0, 0] });\nconst options = bitbybit.draw.optionsOcctShapeSimple({ precision: 0.01, drawFaces: true, faceColour: \"#ff0000\", drawEdges: true, edgeColour: \"#ffffff\", edgeWidth: 2, drawTwoSided: true, backFaceColour: \"#0000ff\", backFaceOpacity: 1 });\nconst drawn = await bitbybit.draw.drawAnyAsync({ entity: box, options });"
1862
+ },
1863
+ "math.add#1": {
1864
+ "path": "math.add",
1865
+ "code": "const sum = bitbybit.math.add({ first: 5, second: 3 });"
1866
+ },
1867
+ "occt.fillets.chamfer2dVertices#1": {
1868
+ "path": "occt.fillets.chamfer2dVertices",
1869
+ "code": "const beveled = await bitbybit.occt.fillets.chamfer2dVertices({ shape: rectangle, distance: 1, angle: 45, indexes: [1, 3] });"
1870
+ },
1871
+ "occt.fillets.chamferEdgeDistAngle#1": {
1872
+ "path": "occt.fillets.chamferEdgeDistAngle",
1873
+ "code": "const beveled = await bitbybit.occt.fillets.chamferEdgeDistAngle({ shape: box, edge: edges[0], face: faces[0], distance: 1, angle: 30 });"
1874
+ },
1875
+ "occt.fillets.chamferEdgeTwoDistances#1": {
1876
+ "path": "occt.fillets.chamferEdgeTwoDistances",
1877
+ "code": "const edges = await bitbybit.occt.shapes.edge.getEdges({ shape: box });\nconst faces = await bitbybit.occt.shapes.face.getFaces({ shape: box });\nconst beveled = await bitbybit.occt.fillets.chamferEdgeTwoDistances({ shape: box, edge: edges[0], face: faces[0], distance1: 1, distance2: 2 });"
1878
+ },
1879
+ "occt.shapes.solid.createBox#1": {
1880
+ "path": "occt.shapes.solid.createBox",
1881
+ "code": "const box = await bitbybit.occt.shapes.solid.createBox({ width: 10, length: 20, height: 5, center: [0, 0, 0], originOnCenter: true });"
1882
+ },
1883
+ "occt.shapes.solid.createBoxFromCorner#1": {
1884
+ "path": "occt.shapes.solid.createBoxFromCorner",
1885
+ "code": "const box = await bitbybit.occt.shapes.solid.createBoxFromCorner({ width: 10, length: 20, height: 5, corner: [0, 0, 0] });"
1886
+ },
1887
+ "occt.shapes.solid.createChristmasTreeSolid#1": {
1888
+ "path": "occt.shapes.solid.createChristmasTreeSolid",
1889
+ "code": "const tree = await bitbybit.occt.shapes.solid.createChristmasTreeSolid({\n height: 10,\n innerDist: 1.5,\n outerDist: 3,\n nrSkirts: 5,\n trunkHeight: 1,\n trunkWidth: 1,\n half: false,\n rotation: 0,\n origin: [0, 0, 0],\n direction: [0, 1, 0],\n extrusionLengthFront: 2,\n extrusionLengthBack: 0,\n});"
1890
+ },
1891
+ "occt.shapes.solid.createCone#1": {
1892
+ "path": "occt.shapes.solid.createCone",
1893
+ "code": "const cone = await bitbybit.occt.shapes.solid.createCone({ radius1: 5, radius2: 0, height: 10, center: [0, 0, 0], direction: [0, 1, 0], angle: 360 });"
1894
+ },
1895
+ "occt.shapes.solid.createCube#1": {
1896
+ "path": "occt.shapes.solid.createCube",
1897
+ "code": "const cube = await bitbybit.occt.shapes.solid.createCube({ size: 10, center: [0, 0, 0], originOnCenter: true });"
1898
+ },
1899
+ "occt.shapes.solid.createCylinder#1": {
1900
+ "path": "occt.shapes.solid.createCylinder",
1901
+ "code": "const cylinder = await bitbybit.occt.shapes.solid.createCylinder({ radius: 5, height: 20, center: [0, 0, 0], direction: [0, 1, 0], angle: 360, originOnCenter: false });"
1902
+ },
1903
+ "occt.shapes.solid.createCylindersOnLines#1": {
1904
+ "path": "occt.shapes.solid.createCylindersOnLines",
1905
+ "code": "const rods = await bitbybit.occt.shapes.solid.createCylindersOnLines({\n lines: [{ start: [0, 0, 0], end: [0, 10, 0] }, { start: [5, 0, 0], end: [5, 10, 0] }],\n radius: 0.5,\n});"
1906
+ },
1907
+ "occt.shapes.solid.createHBeamProfileSolid#1": {
1908
+ "path": "occt.shapes.solid.createHBeamProfileSolid",
1909
+ "code": "const beam = await bitbybit.occt.shapes.solid.createHBeamProfileSolid({\n width: 20,\n height: 20,\n flangeThickness: 1,\n webThickness: 1,\n alignment: Bit.Inputs.Base.basicAlignmentEnum.midMid,\n rotation: 0,\n center: [0, 0, 0],\n direction: [0, 0, 1],\n extrusionLengthFront: 100,\n extrusionLengthBack: 0,\n});"
1910
+ },
1911
+ "occt.shapes.solid.createSphere#1": {
1912
+ "path": "occt.shapes.solid.createSphere",
1913
+ "code": "const sphere = await bitbybit.occt.shapes.solid.createSphere({ radius: 5, center: [0, 0, 0] });"
1914
+ }
1915
+ }
1916
+ }