@cadaclysm/wasm 0.17.0-dev.2 → 0.17.0-dev.3
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/cadaclysm.d.ts +170 -32
- package/cadaclysm.js +661 -86
- package/cadaclysm_bg.wasm +2 -2
- package/package.json +1 -1
package/cadaclysm.d.ts
CHANGED
|
@@ -938,7 +938,7 @@ export class View {
|
|
|
938
938
|
/**
|
|
939
939
|
* Sets clip-plane slot `slot` (0..5): what lies on the side `normal` points to is hidden,
|
|
940
940
|
* and with `cap` (`[r, g, b]`) the cut of every body is filled, hatched with `hatch`
|
|
941
|
-
* (`[r, g, b]`, needs a cap) in lines `hatchAngle`
|
|
941
|
+
* (`[r, g, b]`, needs a cap) in lines `hatchAngle` radians from the plane's first axis (π/4, 45°),
|
|
942
942
|
* `hatchSpacing` apart in model units (0: automatic) and `hatchWidth` points wide (1); with
|
|
943
943
|
* `outline` (`[r, g, b]`) the cut is drawn as a line `outlineWidth` points wide (1).
|
|
944
944
|
* `point` and `normal` are `[x, y, z]`; every other key optional. `null` clears the slot.
|
|
@@ -1270,13 +1270,13 @@ export class View {
|
|
|
1270
1270
|
setSnap(settings: { kinds?: 'default' | 'all' | string[]; aperturePx?: number; marker?: boolean } | null): void;
|
|
1271
1271
|
/**
|
|
1272
1272
|
* The angle lock: snaps that land on no point kind are turned about `point` (world
|
|
1273
|
-
* coordinates) onto the nearest multiple of `
|
|
1274
|
-
* work plane's directions or the plane facing the eye; the snap then answers kind
|
|
1275
|
-
* `"plane"`, its `lockedAngle` in
|
|
1273
|
+
* coordinates) onto the nearest multiple of `step` radians (default 15°, 0.2618; in (0, π]), in
|
|
1274
|
+
* the work plane's directions or the plane facing the eye; the snap then answers kind
|
|
1275
|
+
* `"plane"`, its `lockedAngle` in radians and one guide from `point`. `null` clears it.
|
|
1276
1276
|
* Throws, changing nothing, for a point that is not three finite numbers or a bad step.
|
|
1277
1277
|
* See `View::set_snap_base`.
|
|
1278
1278
|
*/
|
|
1279
|
-
setSnapBase(point: [number, number, number] | Float64Array | Float32Array | null,
|
|
1279
|
+
setSnapBase(point: [number, number, number] | Float64Array | Float32Array | null, step?: number | null): void;
|
|
1280
1280
|
/**
|
|
1281
1281
|
* Points item `id` snaps to as `"point"` (in `showPoints`' forms: three numbers a point,
|
|
1282
1282
|
* in world coordinates, moving with the item's placement), with `label` (at most 31 bytes;
|
|
@@ -1508,7 +1508,7 @@ export class View {
|
|
|
1508
1508
|
* - `programs`: `[{ tool, gcode }]` in run order, each read by the strict Grbl
|
|
1509
1509
|
* reader; a tool is `{ number, shape: "flat" | "ball" | "drill" | "vbit" |
|
|
1510
1510
|
* "bullnose", diameter, flute_length, angle?, corner_radius? }` (`angle` a V-bit's
|
|
1511
|
-
* included angle, `corner_radius` a bull-nose's);
|
|
1511
|
+
* included angle in radians, `corner_radius` a bull-nose's);
|
|
1512
1512
|
* - `part` (optional): a kernel solid's handle, or `{ positions, indices }`, for
|
|
1513
1513
|
* colouring by deviation;
|
|
1514
1514
|
* - `cell` (optional, mm): by default the smaller of 0.1 and the smallest tool's
|
|
@@ -1744,7 +1744,7 @@ export class View {
|
|
|
1744
1744
|
* item's Bezier, a solid's kernel edge; `null` for a face, grid, plane or point snap),
|
|
1745
1745
|
* `tangent` the edge's unit direction there, `axis` and `radius` a circular edge's (zeros
|
|
1746
1746
|
* otherwise), `distancePx` how far the cursor was, `label` a `"point"` snap's
|
|
1747
|
-
* `setSnapPoints` label (else the kind's name), `lockedAngle` the angle in
|
|
1747
|
+
* `setSnapPoints` label (else the kind's name), `lockedAngle` the angle in radians (0..2π)
|
|
1748
1748
|
* `setSnapBase`'s lock turned the point to (`null` unlocked), and `guides` 0 to 2 `{ from,
|
|
1749
1749
|
* to }` world points: an alignment snap's guides, or the lock's ray from its base. `null`
|
|
1750
1750
|
* where nothing in the kinds lies there, and always while snapping is off. The View draws
|
|
@@ -2185,6 +2185,12 @@ export function cadaclysm_blacksmith_assembly_3dm_bytes(assembly: number, unit:
|
|
|
2185
2185
|
*/
|
|
2186
2186
|
export function cadaclysm_blacksmith_assembly_base(assembly: number, link: string): void;
|
|
2187
2187
|
|
|
2188
|
+
/**
|
|
2189
|
+
* `assembly`'s bill of materials as JSON (or CSV when `csv`), as C's `assembly_bom`:
|
|
2190
|
+
* `mode` `top`, `indented` or `parts`; `columns_json` a JSON list of column names.
|
|
2191
|
+
*/
|
|
2192
|
+
export function cadaclysm_blacksmith_assembly_bom(assembly: number, mode: string, group_by: string | null | undefined, columns_json: string | null | undefined, csv: boolean): string;
|
|
2193
|
+
|
|
2188
2194
|
/**
|
|
2189
2195
|
* [`cadaclysm_blacksmith_assembly_expand`](../cadaclysm_blacksmith_capi): how many placements
|
|
2190
2196
|
* were expanded; `placement` `undefined`/`null` expands every compound part in the tree.
|
|
@@ -2238,6 +2244,13 @@ export function cadaclysm_blacksmith_assembly_joint(assembly: number, name: stri
|
|
|
2238
2244
|
*/
|
|
2239
2245
|
export function cadaclysm_blacksmith_assembly_link(assembly: number, name: string, placements: string[]): void;
|
|
2240
2246
|
|
|
2247
|
+
/**
|
|
2248
|
+
* `assembly`'s mass properties at rest as JSON text, as C's `assembly_mass_properties`:
|
|
2249
|
+
* densities by placement path, ancestor path or solid name (`densities` a JSON object, absent
|
|
2250
|
+
* for none), else `density`; each distinct body measured once to `accuracy` (0: the default).
|
|
2251
|
+
*/
|
|
2252
|
+
export function cadaclysm_blacksmith_assembly_mass_properties(assembly: number, density: number, densities: string | null | undefined, accuracy: number): string;
|
|
2253
|
+
|
|
2241
2254
|
export function cadaclysm_blacksmith_assembly_name(assembly: number): string;
|
|
2242
2255
|
|
|
2243
2256
|
export function cadaclysm_blacksmith_assembly_new(name: string): number;
|
|
@@ -2305,6 +2318,11 @@ export function cadaclysm_blacksmith_assembly_posed(assembly: number, joints: st
|
|
|
2305
2318
|
*/
|
|
2306
2319
|
export function cadaclysm_blacksmith_assembly_posed_placements(assembly: number, joints: string[], counts: Uint32Array, values: Float64Array, state?: string | null, ground?: string | null): Float64Array;
|
|
2307
2320
|
|
|
2321
|
+
/**
|
|
2322
|
+
* `assembly`'s own part properties as a JSON object, as C's `assembly_properties`.
|
|
2323
|
+
*/
|
|
2324
|
+
export function cadaclysm_blacksmith_assembly_properties(assembly: number): string;
|
|
2325
|
+
|
|
2308
2326
|
/**
|
|
2309
2327
|
* [`cadaclysm_blacksmith_assembly_rescale`](../cadaclysm_blacksmith_capi).
|
|
2310
2328
|
*/
|
|
@@ -2316,6 +2334,12 @@ export function cadaclysm_blacksmith_assembly_rescale(assembly: number, factor:
|
|
|
2316
2334
|
*/
|
|
2317
2335
|
export function cadaclysm_blacksmith_assembly_sequence(assembly: number, name: string, states: string[], ts: Float64Array, interpolations: string[], seconds: boolean): void;
|
|
2318
2336
|
|
|
2337
|
+
/**
|
|
2338
|
+
* Set `assembly`'s own part property `key` to `value_json` (absent removes it), as C's
|
|
2339
|
+
* `assembly_set_property`.
|
|
2340
|
+
*/
|
|
2341
|
+
export function cadaclysm_blacksmith_assembly_set_property(assembly: number, key: string, value_json?: string | null): boolean;
|
|
2342
|
+
|
|
2319
2343
|
/**
|
|
2320
2344
|
* [`cadaclysm_blacksmith_assembly_state`](../cadaclysm_blacksmith_capi): `joints`
|
|
2321
2345
|
* and `counts` one entry per row, `values` every row's values end to end, as the C
|
|
@@ -3051,6 +3075,11 @@ export function cadaclysm_blacksmith_cut_list_group_tag(h: number, g: number): s
|
|
|
3051
3075
|
|
|
3052
3076
|
export function cadaclysm_blacksmith_cylinder(r: number, h: number): number;
|
|
3053
3077
|
|
|
3078
|
+
/**
|
|
3079
|
+
* Define (or redefine) a user material from `material_json`, as C's `define_material`.
|
|
3080
|
+
*/
|
|
3081
|
+
export function cadaclysm_blacksmith_define_material(material_json: string): boolean;
|
|
3082
|
+
|
|
3054
3083
|
/**
|
|
3055
3084
|
* Applies one op (JSON) and records it as one commit, with `message` (absent or empty: none).
|
|
3056
3085
|
* The changed set as JSON; a refused op throws its reason.
|
|
@@ -3158,6 +3187,12 @@ export function cadaclysm_blacksmith_document_load(text: string): number;
|
|
|
3158
3187
|
*/
|
|
3159
3188
|
export function cadaclysm_blacksmith_document_log(doc: number, branch?: string | null): string;
|
|
3160
3189
|
|
|
3190
|
+
/**
|
|
3191
|
+
* The document's own physical materials as a JSON object by name, as C's
|
|
3192
|
+
* `document_materials`.
|
|
3193
|
+
*/
|
|
3194
|
+
export function cadaclysm_blacksmith_document_materials(doc: number): string;
|
|
3195
|
+
|
|
3161
3196
|
/**
|
|
3162
3197
|
* App `app`'s own data about the document as JSON text (what the last `meta` op set), or
|
|
3163
3198
|
* `undefined` when it keeps none.
|
|
@@ -3271,6 +3306,11 @@ export function cadaclysm_blacksmith_document_result_subd(doc: number, id: strin
|
|
|
3271
3306
|
*/
|
|
3272
3307
|
export function cadaclysm_blacksmith_document_revision(doc: number): number;
|
|
3273
3308
|
|
|
3309
|
+
/**
|
|
3310
|
+
* The rollback marker, as C's `document_rollback`: the nodes before it are evaluated; -1 for none.
|
|
3311
|
+
*/
|
|
3312
|
+
export function cadaclysm_blacksmith_document_rollback(doc: number): number;
|
|
3313
|
+
|
|
3274
3314
|
/**
|
|
3275
3315
|
* The document as canonical JSON text; an open batch or preview is not in it.
|
|
3276
3316
|
*/
|
|
@@ -3555,6 +3595,12 @@ export function cadaclysm_blacksmith_face(profile: number, frame: Float64Array):
|
|
|
3555
3595
|
*/
|
|
3556
3596
|
export function cadaclysm_blacksmith_face_area(solid: number, face: number, accuracy: number): Float64Array;
|
|
3557
3597
|
|
|
3598
|
+
/**
|
|
3599
|
+
* Face `face`'s area, centroid x y z and centroid error bound, five numbers, as C's
|
|
3600
|
+
* `face_area_properties`.
|
|
3601
|
+
*/
|
|
3602
|
+
export function cadaclysm_blacksmith_face_area_properties(solid: number, face: number, accuracy: number): Float64Array;
|
|
3603
|
+
|
|
3558
3604
|
/**
|
|
3559
3605
|
* Face `face`'s attribute `key`, `undefined` where it has none.
|
|
3560
3606
|
*/
|
|
@@ -3937,6 +3983,11 @@ export function cadaclysm_blacksmith_flip_faces(solid: number, faces: Uint32Arra
|
|
|
3937
3983
|
*/
|
|
3938
3984
|
export function cadaclysm_blacksmith_fold_flat(profile: number, frame: Float64Array, bends: Float64Array, rule: Float64Array, tolerance: number): number;
|
|
3939
3985
|
|
|
3986
|
+
/**
|
|
3987
|
+
* Remove the user material `name`; whether there was one, as C's `forget_material`.
|
|
3988
|
+
*/
|
|
3989
|
+
export function cadaclysm_blacksmith_forget_material(name: string): boolean;
|
|
3990
|
+
|
|
3940
3991
|
export function cadaclysm_blacksmith_frame_at_angle(solid: number, edge: number, angle: number, face: number): Float64Array;
|
|
3941
3992
|
|
|
3942
3993
|
/**
|
|
@@ -4061,7 +4112,7 @@ export function cadaclysm_blacksmith_garment_close_dart_cut(h: number, pattern:
|
|
|
4061
4112
|
|
|
4062
4113
|
/**
|
|
4063
4114
|
* Closes pattern `pattern`'s dart `internal` by folding it under: the mark becomes leg
|
|
4064
|
-
* apex-to-`a`; leg apex-to-`b` and the centre fold (
|
|
4115
|
+
* apex-to-`a`; leg apex-to-`b` and the centre fold (2π radians) are appended; tacks pair the
|
|
4065
4116
|
* legs. The number of tacks made (the newest ids, the `a`-`b` tack last).
|
|
4066
4117
|
*/
|
|
4067
4118
|
export function cadaclysm_blacksmith_garment_close_dart_folded(h: number, pattern: number, internal: number, accuracy: number): number;
|
|
@@ -4296,8 +4347,8 @@ export function cadaclysm_blacksmith_garment_seam_strength(h: number, seam: numb
|
|
|
4296
4347
|
export function cadaclysm_blacksmith_garment_seams(h: number): Uint32Array;
|
|
4297
4348
|
|
|
4298
4349
|
/**
|
|
4299
|
-
* Sets the fold on pattern `pattern`'s internal line `index` (a fold line): `angle` in
|
|
4300
|
-
* in [0,
|
|
4350
|
+
* Sets the fold on pattern `pattern`'s internal line `index` (a fold line): `angle` in radians
|
|
4351
|
+
* in [0, 2π] (π is flat), `strength` at least 0. A NaN `angle` clears it.
|
|
4301
4352
|
*/
|
|
4302
4353
|
export function cadaclysm_blacksmith_garment_set_fold(h: number, pattern: number, index: number, angle: number, strength: number): void;
|
|
4303
4354
|
|
|
@@ -4831,6 +4882,16 @@ export function cadaclysm_blacksmith_mass_properties(solid: number, accuracy: nu
|
|
|
4831
4882
|
*/
|
|
4832
4883
|
export function cadaclysm_blacksmith_match_side(a: number, face_a: number, side_a: number, b: number, face_b: number, side_b: number, level: number): number;
|
|
4833
4884
|
|
|
4885
|
+
/**
|
|
4886
|
+
* The physical material called `name` as a JSON object, as C's `material`.
|
|
4887
|
+
*/
|
|
4888
|
+
export function cadaclysm_blacksmith_material(name: string): string;
|
|
4889
|
+
|
|
4890
|
+
/**
|
|
4891
|
+
* Every physical material as a JSON array, as C's `materials`.
|
|
4892
|
+
*/
|
|
4893
|
+
export function cadaclysm_blacksmith_materials(): string;
|
|
4894
|
+
|
|
4834
4895
|
/**
|
|
4835
4896
|
* `a` and `b` merged into one non-manifold solid that keeps every piece (see
|
|
4836
4897
|
* `cadaclysm_blacksmith_merge` in the C header); progress as `join`'s.
|
|
@@ -6335,6 +6396,21 @@ export function cadaclysm_blacksmith_quaternion_slerp(a: Float64Array, b: Float6
|
|
|
6335
6396
|
|
|
6336
6397
|
export function cadaclysm_blacksmith_quaternion_to_transform(q: Float64Array, centre: Float64Array): Float64Array;
|
|
6337
6398
|
|
|
6399
|
+
/**
|
|
6400
|
+
* The edges an edges `query` picks on `solid`, ascending edge-table rows, as C's `query_edges`.
|
|
6401
|
+
*/
|
|
6402
|
+
export function cadaclysm_blacksmith_query_edges(solid: number, query: string): Uint32Array;
|
|
6403
|
+
|
|
6404
|
+
/**
|
|
6405
|
+
* The faces a faces `query` (JSON) picks on `solid`, ascending, as C's `query_faces`.
|
|
6406
|
+
*/
|
|
6407
|
+
export function cadaclysm_blacksmith_query_faces(solid: number, query: string): Uint32Array;
|
|
6408
|
+
|
|
6409
|
+
/**
|
|
6410
|
+
* The vertices a vertices `query` picks on `solid`, ascending, as C's `query_vertices`.
|
|
6411
|
+
*/
|
|
6412
|
+
export function cadaclysm_blacksmith_query_vertices(solid: number, query: string): Uint32Array;
|
|
6413
|
+
|
|
6338
6414
|
/**
|
|
6339
6415
|
* The rail-revolved sheet, or with `solid` the closed body, as C's `rail_revolve`.
|
|
6340
6416
|
*/
|
|
@@ -6581,8 +6657,6 @@ export function cadaclysm_blacksmith_section_names(): string;
|
|
|
6581
6657
|
*/
|
|
6582
6658
|
export function cadaclysm_blacksmith_section_profile(designation: string): number;
|
|
6583
6659
|
|
|
6584
|
-
export function cadaclysm_blacksmith_select_face(solid: number, kind: number, v: Float64Array, index: number): number;
|
|
6585
|
-
|
|
6586
6660
|
/**
|
|
6587
6661
|
* Where `solid` passes through itself, as an intersection handle read and released as
|
|
6588
6662
|
* `intersect`'s, with `solid` on both sides: never along its own edges and vertices, a
|
|
@@ -7142,7 +7216,8 @@ export function cadaclysm_blacksmith_sketch_pattern_circular(h: number, ids: Uin
|
|
|
7142
7216
|
|
|
7143
7217
|
/**
|
|
7144
7218
|
* As `sketch_pattern_circular`, `count_expr` (none or empty for `count`) an `"=expression"` for
|
|
7145
|
-
* the count and `step_expr` (none or empty for `step` radians) one in
|
|
7219
|
+
* the count and `step_expr` (none or empty for `step` radians) one in radians for the step
|
|
7220
|
+
* (`"=deg(360) / holes"`):
|
|
7146
7221
|
* `[feature, k, m, s, d, copies..., steps..., dimensions...]`.
|
|
7147
7222
|
*/
|
|
7148
7223
|
export function cadaclysm_blacksmith_sketch_pattern_circular_expr(h: number, ids: Uint32Array, centre: number, count: number, count_expr: string | null | undefined, step: number, step_expr?: string | null): Uint32Array;
|
|
@@ -7457,6 +7532,11 @@ export function cadaclysm_blacksmith_solid_process(solid: number, steps: string)
|
|
|
7457
7532
|
*/
|
|
7458
7533
|
export function cadaclysm_blacksmith_solid_profile_hits(solid: number, profile: number, frame: Float64Array, tolerance: number, progress?: Function | null): number;
|
|
7459
7534
|
|
|
7535
|
+
/**
|
|
7536
|
+
* `solid`'s part properties as a JSON object, keys sorted, as C's `solid_properties`.
|
|
7537
|
+
*/
|
|
7538
|
+
export function cadaclysm_blacksmith_solid_properties(solid: number): string;
|
|
7539
|
+
|
|
7460
7540
|
/**
|
|
7461
7541
|
* `solid` placed by `matrix` made rigid, as C's `solid_purge_placement`: `[solid, the rigid
|
|
7462
7542
|
* rest's 16 numbers, inexact]`, C's outs in order.
|
|
@@ -7576,6 +7656,18 @@ export function cadaclysm_blacksmith_solid_value_volume(kind: number, value: Flo
|
|
|
7576
7656
|
*/
|
|
7577
7657
|
export function cadaclysm_blacksmith_solid_weld_bead(solid: number, edge: number, size: number): Float64Array;
|
|
7578
7658
|
|
|
7659
|
+
/**
|
|
7660
|
+
* `solid` with the `part:<key>` properties among `pairs_json` (`[name, text]` pairs), as C's
|
|
7661
|
+
* `solid_with_file_properties`.
|
|
7662
|
+
*/
|
|
7663
|
+
export function cadaclysm_blacksmith_solid_with_file_properties(solid: number, pairs_json: string): number;
|
|
7664
|
+
|
|
7665
|
+
/**
|
|
7666
|
+
* `solid` with part property `key` set to `value_json` (a JSON string, number or
|
|
7667
|
+
* `{"date": "YYYY-MM-DD"}`), as C's `solid_with_property`.
|
|
7668
|
+
*/
|
|
7669
|
+
export function cadaclysm_blacksmith_solid_with_property(solid: number, key: string, value_json: string): number;
|
|
7670
|
+
|
|
7579
7671
|
/**
|
|
7580
7672
|
* A new solid: `solid` declaring `absolute` and `angular` (radians) instead; `undefined`,
|
|
7581
7673
|
* `null`, 0 or NaN declares nothing for that field (JS hands `undefined` over as NaN, `null` as
|
|
@@ -7583,6 +7675,11 @@ export function cadaclysm_blacksmith_solid_weld_bead(solid: number, edge: number
|
|
|
7583
7675
|
*/
|
|
7584
7676
|
export function cadaclysm_blacksmith_solid_with_tolerances(solid: number, absolute: number, angular: number): number;
|
|
7585
7677
|
|
|
7678
|
+
/**
|
|
7679
|
+
* `solid` without part property `key`, as C's `solid_without_property`.
|
|
7680
|
+
*/
|
|
7681
|
+
export function cadaclysm_blacksmith_solid_without_property(solid: number, key: string): number;
|
|
7682
|
+
|
|
7586
7683
|
export function cadaclysm_blacksmith_sphere(r: number): number;
|
|
7587
7684
|
|
|
7588
7685
|
export function cadaclysm_blacksmith_split(solid: number, tool: number, tolerance: number, progress?: Function | null): number;
|
|
@@ -7890,19 +7987,19 @@ export function cadaclysm_blacksmith_subd_subdivide(subd: number, faces: Uint32A
|
|
|
7890
7987
|
/**
|
|
7891
7988
|
* The cage as an exact solid and what the conversion did, as `[solid, report]`, where C
|
|
7892
7989
|
* writes the report through an out-pointer: `report` is `{regular, refined, steps,
|
|
7893
|
-
* levels, deviation,
|
|
7894
|
-
* xyz. `tolerance <= 0`, `
|
|
7990
|
+
* levels, deviation, g1_angle, deviation_at, g1_at}`, the two points `Float64Array`s of
|
|
7991
|
+
* xyz, `g1_angle` in radians. `tolerance <= 0`, `g1_angle <= 0` (radians) and `max_levels` 0 take the defaults; a
|
|
7895
7992
|
* cage the conversion cannot hold within them throws with the figures it measured.
|
|
7896
7993
|
*/
|
|
7897
|
-
export function cadaclysm_blacksmith_subd_to_solid(subd: number, tolerance: number,
|
|
7994
|
+
export function cadaclysm_blacksmith_subd_to_solid(subd: number, tolerance: number, g1_angle: number, max_levels: number): any;
|
|
7898
7995
|
|
|
7899
7996
|
/**
|
|
7900
7997
|
* [`cadaclysm_blacksmith_subd_to_solid`] with packing a choice, as `[solid, report]`:
|
|
7901
7998
|
* `pack` false gives one face per patch, and the report carries C's two out-structs'
|
|
7902
|
-
* fields in one object, `{regular, refined, steps, levels, deviation,
|
|
7999
|
+
* fields in one object, `{regular, refined, steps, levels, deviation, g1_angle,
|
|
7903
8000
|
* deviation_at, g1_at, faces, packed_faces}`.
|
|
7904
8001
|
*/
|
|
7905
|
-
export function cadaclysm_blacksmith_subd_to_solid_with(subd: number, tolerance: number,
|
|
8002
|
+
export function cadaclysm_blacksmith_subd_to_solid_with(subd: number, tolerance: number, g1_angle: number, max_levels: number, pack: boolean): any;
|
|
7906
8003
|
|
|
7907
8004
|
/**
|
|
7908
8005
|
* A torus around +Z: `around` steps about the axis at `major`, `tube` round the tube of `minor`.
|
|
@@ -8155,7 +8252,7 @@ export function cadaclysm_blacksmith_thread_size_size(index: number): string;
|
|
|
8155
8252
|
export function cadaclysm_blacksmith_thread_tool(solid: number, face: number, designation: string | null | undefined, pitch: number, diameter: number, angle: number, length: number, offset: number, flags: number, tolerance: number): number;
|
|
8156
8253
|
|
|
8157
8254
|
/**
|
|
8158
|
-
* A V-bit's included angle in
|
|
8255
|
+
* A V-bit's included angle in radians; `NaN` for any other shape, as in C.
|
|
8159
8256
|
*/
|
|
8160
8257
|
export function cadaclysm_blacksmith_tool_angle(t: number): number;
|
|
8161
8258
|
|
|
@@ -8192,7 +8289,7 @@ export function cadaclysm_blacksmith_tool_number(t: number): number;
|
|
|
8192
8289
|
*/
|
|
8193
8290
|
export function cadaclysm_blacksmith_tool_shape(t: number): string;
|
|
8194
8291
|
|
|
8195
|
-
export function cadaclysm_blacksmith_tool_with_ramp_angle(t: number,
|
|
8292
|
+
export function cadaclysm_blacksmith_tool_with_ramp_angle(t: number, angle: number): number;
|
|
8196
8293
|
|
|
8197
8294
|
export function cadaclysm_blacksmith_torus(major: number, minor: number): number;
|
|
8198
8295
|
|
|
@@ -8498,6 +8595,26 @@ export function cadaclysm_blacksmith_unchamfer(solid: number, face: number): num
|
|
|
8498
8595
|
|
|
8499
8596
|
export function cadaclysm_blacksmith_unfillet(solid: number, face: number): number;
|
|
8500
8597
|
|
|
8598
|
+
/**
|
|
8599
|
+
* `value` in unit `from` as a number in unit `to`, as C's `units_convert`.
|
|
8600
|
+
*/
|
|
8601
|
+
export function cadaclysm_blacksmith_units_convert(value: number, from: string, to: string): number;
|
|
8602
|
+
|
|
8603
|
+
/**
|
|
8604
|
+
* A unit expression with no names as a number in `unit`, as C's `units_evaluate`.
|
|
8605
|
+
*/
|
|
8606
|
+
export function cadaclysm_blacksmith_units_evaluate(text: string, unit: string): number;
|
|
8607
|
+
|
|
8608
|
+
/**
|
|
8609
|
+
* `value` (in `unit`) with `precision` decimals and the unit, as C's `units_format`.
|
|
8610
|
+
*/
|
|
8611
|
+
export function cadaclysm_blacksmith_units_format(value: number, unit: string, precision: number): string;
|
|
8612
|
+
|
|
8613
|
+
/**
|
|
8614
|
+
* The unit words as JSON text, as C's `units_list`.
|
|
8615
|
+
*/
|
|
8616
|
+
export function cadaclysm_blacksmith_units_list(): string;
|
|
8617
|
+
|
|
8501
8618
|
export function cadaclysm_blacksmith_unpaired_edges(solid: number, tolerance: number): number;
|
|
8502
8619
|
|
|
8503
8620
|
/**
|
|
@@ -8912,6 +9029,7 @@ export interface InitOutput {
|
|
|
8912
9029
|
readonly cadaclysm_blacksmith_arc_through: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
8913
9030
|
readonly cadaclysm_blacksmith_assembly_3dm_bytes: (a: number, b: number, c: number) => void;
|
|
8914
9031
|
readonly cadaclysm_blacksmith_assembly_base: (a: number, b: number, c: number, d: number) => void;
|
|
9032
|
+
readonly cadaclysm_blacksmith_assembly_bom: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
8915
9033
|
readonly cadaclysm_blacksmith_assembly_expand: (a: number, b: number, c: number, d: number) => void;
|
|
8916
9034
|
readonly cadaclysm_blacksmith_assembly_explode_animation: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
8917
9035
|
readonly cadaclysm_blacksmith_assembly_explode_step: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
@@ -8921,6 +9039,7 @@ export interface InitOutput {
|
|
|
8921
9039
|
readonly cadaclysm_blacksmith_assembly_free: (a: number) => void;
|
|
8922
9040
|
readonly cadaclysm_blacksmith_assembly_joint: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
8923
9041
|
readonly cadaclysm_blacksmith_assembly_link: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
9042
|
+
readonly cadaclysm_blacksmith_assembly_mass_properties: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
8924
9043
|
readonly cadaclysm_blacksmith_assembly_name: (a: number, b: number) => void;
|
|
8925
9044
|
readonly cadaclysm_blacksmith_assembly_new: (a: number, b: number, c: number) => void;
|
|
8926
9045
|
readonly cadaclysm_blacksmith_assembly_pair: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number) => void;
|
|
@@ -8931,8 +9050,10 @@ export interface InitOutput {
|
|
|
8931
9050
|
readonly cadaclysm_blacksmith_assembly_place_solid: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
8932
9051
|
readonly cadaclysm_blacksmith_assembly_posed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
8933
9052
|
readonly cadaclysm_blacksmith_assembly_posed_placements: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
9053
|
+
readonly cadaclysm_blacksmith_assembly_properties: (a: number, b: number) => void;
|
|
8934
9054
|
readonly cadaclysm_blacksmith_assembly_rescale: (a: number, b: number, c: number) => void;
|
|
8935
9055
|
readonly cadaclysm_blacksmith_assembly_sequence: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
9056
|
+
readonly cadaclysm_blacksmith_assembly_set_property: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
8936
9057
|
readonly cadaclysm_blacksmith_assembly_state: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
8937
9058
|
readonly cadaclysm_blacksmith_assembly_step: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
8938
9059
|
readonly cadaclysm_blacksmith_assembly_swept_clash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number) => void;
|
|
@@ -9070,6 +9191,7 @@ export interface InitOutput {
|
|
|
9070
9191
|
readonly cadaclysm_blacksmith_cut_list_group_count: (a: number, b: number) => void;
|
|
9071
9192
|
readonly cadaclysm_blacksmith_cut_list_group_tag: (a: number, b: number, c: number) => void;
|
|
9072
9193
|
readonly cadaclysm_blacksmith_cylinder: (a: number, b: number, c: number) => void;
|
|
9194
|
+
readonly cadaclysm_blacksmith_define_material: (a: number, b: number, c: number) => void;
|
|
9073
9195
|
readonly cadaclysm_blacksmith_document_apply: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
9074
9196
|
readonly cadaclysm_blacksmith_document_batch_abort: (a: number, b: number) => void;
|
|
9075
9197
|
readonly cadaclysm_blacksmith_document_batch_begin: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -9094,6 +9216,7 @@ export interface InitOutput {
|
|
|
9094
9216
|
readonly cadaclysm_blacksmith_document_kinds: (a: number) => void;
|
|
9095
9217
|
readonly cadaclysm_blacksmith_document_load: (a: number, b: number, c: number) => void;
|
|
9096
9218
|
readonly cadaclysm_blacksmith_document_log: (a: number, b: number, c: number, d: number) => void;
|
|
9219
|
+
readonly cadaclysm_blacksmith_document_materials: (a: number, b: number) => void;
|
|
9097
9220
|
readonly cadaclysm_blacksmith_document_meta: (a: number, b: number, c: number, d: number) => void;
|
|
9098
9221
|
readonly cadaclysm_blacksmith_document_new: (a: number, b: number, c: number) => void;
|
|
9099
9222
|
readonly cadaclysm_blacksmith_document_nodes: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -9116,6 +9239,7 @@ export interface InitOutput {
|
|
|
9116
9239
|
readonly cadaclysm_blacksmith_document_result_solid: (a: number, b: number, c: number, d: number) => void;
|
|
9117
9240
|
readonly cadaclysm_blacksmith_document_result_subd: (a: number, b: number, c: number, d: number) => void;
|
|
9118
9241
|
readonly cadaclysm_blacksmith_document_revision: (a: number, b: number) => void;
|
|
9242
|
+
readonly cadaclysm_blacksmith_document_rollback: (a: number, b: number) => void;
|
|
9119
9243
|
readonly cadaclysm_blacksmith_document_save: (a: number, b: number) => void;
|
|
9120
9244
|
readonly cadaclysm_blacksmith_document_set_skip: (a: number, b: number, c: number, d: number) => void;
|
|
9121
9245
|
readonly cadaclysm_blacksmith_document_solid_body: (a: number, b: number) => void;
|
|
@@ -9176,6 +9300,7 @@ export interface InitOutput {
|
|
|
9176
9300
|
readonly cadaclysm_blacksmith_extrude_to: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
9177
9301
|
readonly cadaclysm_blacksmith_face: (a: number, b: number, c: number, d: number) => void;
|
|
9178
9302
|
readonly cadaclysm_blacksmith_face_area: (a: number, b: number, c: number, d: number) => void;
|
|
9303
|
+
readonly cadaclysm_blacksmith_face_area_properties: (a: number, b: number, c: number, d: number) => void;
|
|
9179
9304
|
readonly cadaclysm_blacksmith_face_attribute: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
9180
9305
|
readonly cadaclysm_blacksmith_face_attribute_keys: (a: number, b: number, c: number) => void;
|
|
9181
9306
|
readonly cadaclysm_blacksmith_face_attribute_values: (a: number, b: number, c: number) => void;
|
|
@@ -9242,6 +9367,7 @@ export interface InitOutput {
|
|
|
9242
9367
|
readonly cadaclysm_blacksmith_flat_pattern_trim: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
9243
9368
|
readonly cadaclysm_blacksmith_flip_faces: (a: number, b: number, c: number, d: number) => void;
|
|
9244
9369
|
readonly cadaclysm_blacksmith_fold_flat: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
9370
|
+
readonly cadaclysm_blacksmith_forget_material: (a: number, b: number) => number;
|
|
9245
9371
|
readonly cadaclysm_blacksmith_frame_at_angle: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
9246
9372
|
readonly cadaclysm_blacksmith_frame_fit: (a: number, b: number, c: number) => void;
|
|
9247
9373
|
readonly cadaclysm_blacksmith_frame_midplane: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
@@ -9424,6 +9550,8 @@ export interface InitOutput {
|
|
|
9424
9550
|
readonly cadaclysm_blacksmith_manifold_flaws: (a: number, b: number) => void;
|
|
9425
9551
|
readonly cadaclysm_blacksmith_mass_properties: (a: number, b: number, c: number) => void;
|
|
9426
9552
|
readonly cadaclysm_blacksmith_match_side: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
9553
|
+
readonly cadaclysm_blacksmith_material: (a: number, b: number, c: number) => void;
|
|
9554
|
+
readonly cadaclysm_blacksmith_materials: (a: number) => void;
|
|
9427
9555
|
readonly cadaclysm_blacksmith_merge: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
9428
9556
|
readonly cadaclysm_blacksmith_merge_flush: (a: number, b: number) => void;
|
|
9429
9557
|
readonly cadaclysm_blacksmith_mesh: (a: number, b: number, c: number) => void;
|
|
@@ -9763,6 +9891,9 @@ export interface InitOutput {
|
|
|
9763
9891
|
readonly cadaclysm_blacksmith_quaternion_from_transform: (a: number, b: number, c: number) => void;
|
|
9764
9892
|
readonly cadaclysm_blacksmith_quaternion_slerp: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
9765
9893
|
readonly cadaclysm_blacksmith_quaternion_to_transform: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
9894
|
+
readonly cadaclysm_blacksmith_query_edges: (a: number, b: number, c: number, d: number) => void;
|
|
9895
|
+
readonly cadaclysm_blacksmith_query_faces: (a: number, b: number, c: number, d: number) => void;
|
|
9896
|
+
readonly cadaclysm_blacksmith_query_vertices: (a: number, b: number, c: number, d: number) => void;
|
|
9766
9897
|
readonly cadaclysm_blacksmith_rail_revolve: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
9767
9898
|
readonly cadaclysm_blacksmith_ray_closest_point: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
9768
9899
|
readonly cadaclysm_blacksmith_ray_point_at: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -9822,7 +9953,6 @@ export interface InitOutput {
|
|
|
9822
9953
|
readonly cadaclysm_blacksmith_section_dimensions: (a: number, b: number, c: number) => void;
|
|
9823
9954
|
readonly cadaclysm_blacksmith_section_names: (a: number) => void;
|
|
9824
9955
|
readonly cadaclysm_blacksmith_section_profile: (a: number, b: number, c: number) => void;
|
|
9825
|
-
readonly cadaclysm_blacksmith_select_face: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
9826
9956
|
readonly cadaclysm_blacksmith_self_intersect: (a: number, b: number, c: number, d: number) => void;
|
|
9827
9957
|
readonly cadaclysm_blacksmith_set_progress_hook: (a: number) => void;
|
|
9828
9958
|
readonly cadaclysm_blacksmith_sheet_base: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
@@ -9982,6 +10112,7 @@ export interface InitOutput {
|
|
|
9982
10112
|
readonly cadaclysm_blacksmith_solid_point_inside: (a: number, b: number, c: number) => void;
|
|
9983
10113
|
readonly cadaclysm_blacksmith_solid_process: (a: number, b: number, c: number, d: number) => void;
|
|
9984
10114
|
readonly cadaclysm_blacksmith_solid_profile_hits: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
10115
|
+
readonly cadaclysm_blacksmith_solid_properties: (a: number, b: number) => void;
|
|
9985
10116
|
readonly cadaclysm_blacksmith_solid_purge_placement: (a: number, b: number, c: number, d: number) => void;
|
|
9986
10117
|
readonly cadaclysm_blacksmith_solid_ray_hits: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
9987
10118
|
readonly cadaclysm_blacksmith_solid_replace_faces: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
@@ -10006,7 +10137,10 @@ export interface InitOutput {
|
|
|
10006
10137
|
readonly cadaclysm_blacksmith_solid_value_to_solid: (a: number, b: number, c: number, d: number) => void;
|
|
10007
10138
|
readonly cadaclysm_blacksmith_solid_value_volume: (a: number, b: number, c: number, d: number) => void;
|
|
10008
10139
|
readonly cadaclysm_blacksmith_solid_weld_bead: (a: number, b: number, c: number, d: number) => void;
|
|
10140
|
+
readonly cadaclysm_blacksmith_solid_with_file_properties: (a: number, b: number, c: number, d: number) => void;
|
|
10141
|
+
readonly cadaclysm_blacksmith_solid_with_property: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
10009
10142
|
readonly cadaclysm_blacksmith_solid_with_tolerances: (a: number, b: number, c: number, d: number) => void;
|
|
10143
|
+
readonly cadaclysm_blacksmith_solid_without_property: (a: number, b: number, c: number, d: number) => void;
|
|
10010
10144
|
readonly cadaclysm_blacksmith_sphere: (a: number, b: number) => void;
|
|
10011
10145
|
readonly cadaclysm_blacksmith_split: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
10012
10146
|
readonly cadaclysm_blacksmith_split_along_curve: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -10209,6 +10343,10 @@ export interface InitOutput {
|
|
|
10209
10343
|
readonly cadaclysm_blacksmith_trim_by_curve: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
10210
10344
|
readonly cadaclysm_blacksmith_unchamfer: (a: number, b: number, c: number) => void;
|
|
10211
10345
|
readonly cadaclysm_blacksmith_unfillet: (a: number, b: number, c: number) => void;
|
|
10346
|
+
readonly cadaclysm_blacksmith_units_convert: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
10347
|
+
readonly cadaclysm_blacksmith_units_evaluate: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
10348
|
+
readonly cadaclysm_blacksmith_units_format: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
10349
|
+
readonly cadaclysm_blacksmith_units_list: (a: number) => void;
|
|
10212
10350
|
readonly cadaclysm_blacksmith_unpaired_edges: (a: number, b: number, c: number) => void;
|
|
10213
10351
|
readonly cadaclysm_blacksmith_unroll: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
10214
10352
|
readonly cadaclysm_blacksmith_unrolled_curve_piece: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -10507,17 +10645,17 @@ export interface InitOutput {
|
|
|
10507
10645
|
readonly cadaclysm_blacksmith_build_date: (a: number) => void;
|
|
10508
10646
|
readonly version: (a: number) => void;
|
|
10509
10647
|
readonly start: () => void;
|
|
10510
|
-
readonly
|
|
10511
|
-
readonly
|
|
10512
|
-
readonly
|
|
10513
|
-
readonly
|
|
10514
|
-
readonly
|
|
10515
|
-
readonly
|
|
10516
|
-
readonly
|
|
10517
|
-
readonly
|
|
10518
|
-
readonly
|
|
10519
|
-
readonly
|
|
10520
|
-
readonly
|
|
10648
|
+
readonly __wasm_bindgen_func_elem_33006: (a: number, b: number, c: number, d: number) => void;
|
|
10649
|
+
readonly __wasm_bindgen_func_elem_10099: (a: number, b: number, c: number, d: number) => void;
|
|
10650
|
+
readonly __wasm_bindgen_func_elem_10099_7: (a: number, b: number, c: number, d: number) => void;
|
|
10651
|
+
readonly __wasm_bindgen_func_elem_10099_8: (a: number, b: number, c: number, d: number) => void;
|
|
10652
|
+
readonly __wasm_bindgen_func_elem_33027: (a: number, b: number, c: number, d: number) => void;
|
|
10653
|
+
readonly __wasm_bindgen_func_elem_1038: (a: number, b: number, c: number) => number;
|
|
10654
|
+
readonly __wasm_bindgen_func_elem_8184: (a: number, b: number, c: number) => number;
|
|
10655
|
+
readonly __wasm_bindgen_func_elem_10104: (a: number, b: number, c: number) => void;
|
|
10656
|
+
readonly __wasm_bindgen_func_elem_10104_5: (a: number, b: number, c: number) => void;
|
|
10657
|
+
readonly __wasm_bindgen_func_elem_1040: (a: number, b: number, c: number) => void;
|
|
10658
|
+
readonly __wasm_bindgen_func_elem_1042: (a: number, b: number) => void;
|
|
10521
10659
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
10522
10660
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
10523
10661
|
readonly __wbindgen_export3: (a: number) => void;
|