fast-mesh-wasm 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{client-BrTp2eMp.js → client-DFgvktkT.js} +164 -10
- package/dist/{client-Ds09vLkN.d.ts → client-nvmbhtn-.d.ts} +76 -14
- package/dist/{engine-DjdY3GxK.js → engine-BL5_sWAf.js} +15 -4
- package/dist/io.d.ts +200 -2
- package/dist/io.js +3057 -3
- package/dist/{mesh-BsqIofgT.d.ts → mesh-BHTFxsXc.d.ts} +1 -1
- package/dist/node.d.ts +2 -2
- package/dist/node.js +3 -2
- package/dist/{protocol-Cb23HelE.d.ts → protocol-DFR0JDAS.d.ts} +3 -1
- package/dist/r3f.d.ts +3 -3
- package/dist/r3f.js +1 -1
- package/dist/react.d.ts +2 -2
- package/dist/{scene-D0HNTwoo.js → scene-DUsj6uJD.js} +346 -30
- package/dist/{scene-like-CADk1vfb.d.ts → scene-like-CR_Dpohm.d.ts} +902 -146
- package/dist/{store-BfC6kkf5.d.ts → store-8HWG90Jg.d.ts} +14 -3
- package/dist/{store-DIQmxF_s.js → store-BAzHRRkt.js} +18 -2
- package/dist/store.d.ts +3 -3
- package/dist/store.js +1 -1
- package/dist/three.d.ts +2 -2
- package/dist/views-BSy-Qeg8.js +584 -0
- package/dist/wasm/fast_mesh_wasm.d.ts +7 -0
- package/dist/wasm/fast_mesh_wasm.js +21 -0
- package/dist/wasm/fast_mesh_wasm_bg.wasm +0 -0
- package/dist/wasm/fast_mesh_wasm_bg.wasm.d.ts +1 -0
- package/dist/wasm-threads/fast_mesh_wasm.d.ts +7 -0
- package/dist/wasm-threads/fast_mesh_wasm.js +21 -0
- package/dist/wasm-threads/fast_mesh_wasm_bg.wasm +0 -0
- package/dist/wasm-threads/fast_mesh_wasm_bg.wasm.d.ts +1 -0
- package/dist/web.d.ts +2 -2
- package/dist/web.js +3 -2
- package/dist/worker-engine.d.ts +1 -1
- package/dist/worker-engine.js +1 -1
- package/dist/worker-entry.js +1 -1
- package/dist/worker.d.ts +1 -1
- package/dist/worker.js +1 -1
- package/package.json +1 -1
- package/dist/views-B00kdV0R.js +0 -214
package/dist/node.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as SculptDomain, $n as StretchReport, $t as FindContactsOptions, A as InspectDomain, An as RepairReport, Ar as Vec3, At as CaptureRestReport, B as WorkerDeformDomain, Bn as SectionGap, Bt as CurvatureFieldDesc, C as SimplifyOptions, Cn as RegisterOptions, Cr as Mat3, Ct as AnalyzeOptions, D as WorkerRemeshDomain, Dn as RemeshReport, Dr as Positions64, Dt as BooleanOp, E as VoxelRemeshOptions, En as RelaxReport, Er as Positions, Et as AutoRepairRequest, F as DeformBackend, Fn as SculptOp, Ft as ClosestPointOptions, G as ClayOp, Gn as SelfIntersectionMode, Gt as DragOptions, H as BeginStrokeOptions, Hn as SectionResult, Ht as CutReport, I as DeformDomain, In as SculptReport, It as ColorRule, J as FlattenOp, Jn as SimplifyReport, Jt as EditRef, K as CreaseOp, Kn as ShellReport, Kt as DragSession, L as DeformReturn, Ln as SculptReportOf, Lt as Colormap, M as SyncInspectDomain, Mn as Rgba, Mr as computeVertexNormals, Mt as ClayProfile, N as WorkerInspectDomain, Nn as Scene, Nt as ClayReport, O as createRemeshDomain, On as RemoveReport, Or as Quat, Ot as BoundaryLoop, P as createInspectDomain, Pn as SceneOptions, Pt as ClosestHit, Q as SculptBackend, Qn as SmoothReport, Qt as FilledLoop, R as ProtectedSculptOp, Rn as SectionContour, Rt as Contact, S as RemeshReturn, Sn as RegisterNotApplied, Sr as InitInput, St as Analysis, T as SyncRemeshDomain, Tn as RegisterStatus, Tr as PlacementInput, Tt as AutoRepairReport, U as CaptureRestOptions, Un as SelfIntersectOptions, Ut as DegenerateReport, V as createDeformDomain, Vn as SectionPlane, Vt as CutOptions, W as CaptureStrokeOptions, Wn as SelfIntersectReport, Wt as DistanceFieldDesc, X as InflateOp, Xn as SliverReport, Xt as FieldStatus, Y as GrabOp, Yn as SliverOptions, Yt as EditResult, Z as RelaxOp, Zn as SmoothMethod, Zt as FillReport, _ as WorkerRepairDomain, _n as OrientReport, _r as FieldHandle, _t as AlignReturn, a as WorkerSceneDomains, an as InflateReport, ar as TwistReport, at as WorkerSculptDomain, b as RemeshBackend, bn as RaycastOptions, br as Bounds, bt as createAlignDomain, c as CleanOptions, cn as LoopId, cr as MeshViews, ct as BooleanDomain, d as FillHolesOptions, dn as MeasureResult, dr as ComponentSelect, dt as ShellOptions, en as FlattenMode, er as SubdivideReport, et as SculptReturn, f as RepairBackend, fn as MeshChange, fr as IsolateReport, ft as SyncBooleanDomain, g as SyncRepairDomain, gn as OffsetReport, gr as Range, gt as AlignDomain, h as SmallComponentOptions, hn as OffsetAlgorithm, hr as VertexSelection, ht as AlignBackend, i as SyncSceneDomains, in as InflateMethod, ir as TwistMethod, it as TwistOp, j as InspectReturn, jn as RepairReportOf, jr as computeBounds, jt as CaptureStrokeReport, k as InspectBackend, kn as RepairOp, kr as UpdateMode, kt as BridgeReport, l as CleanReport, ln as ManifoldOptions, lr as SceneMeshViews, lt as BooleanReturn, m as RepairReturn, mn as MeshDistance, mr as SelectSpec, mt as createBooleanDomain, n as SceneLike, nn as GrabMethod, nr as Symmetry, nt as SplitStretchedOptions, o as AutoRepairOptions, on as JoinOptions, or as VertexProtection, ot as createSculptDomain, p as RepairDomain, pn as MeshComponent, pr as LassoSelect, pt as WorkerBooleanDomain, q as FilteredSculptOp, qn as SignMode, qt as EditOp, r as SceneDomains, rn as GrabReport, rr as ThicknessFieldDesc, rt as SyncSculptDomain, s as BridgeLoopsOptions, sn as JoinReport, sr as WeldReport, st as BooleanBackend, t as SceneDomainsLike, tn as FlattenReport, tr as SurfaceFilter, tt as SmoothOp, u as DegenerateOptions, un as ManifoldReport, ur as BrushSelect, ut as OffsetOptions, v as createRepairDomain, vn as OutOfRange, vr as MeshHandle, vt as SyncAlignDomain, w as SubdivideOptions, wn as RegisterResult, wr as Placement, wt as AutoRepairPreset, x as RemeshDomain, xn as RegisterMotion, xr as Indices, xt as AddMeshOptions, y as RegionRemeshOptions, yn as RayHit, yr as SectionHandle, yt as WorkerAlignDomain, z as SyncDeformDomain, zn as SectionDesc, zt as CreaseReport } from "./scene-like-CR_Dpohm.js";
|
|
2
2
|
import { n as FastMeshErrorCode, t as FastMeshError } from "./core-CJ9D6U5A.js";
|
|
3
3
|
/**
|
|
4
4
|
* Resolves immediately: in Node.js and Bun the module is ready as soon as it is imported.
|
|
@@ -6,4 +6,4 @@ import { n as FastMeshErrorCode, t as FastMeshError } from "./core-CJ9D6U5A.js";
|
|
|
6
6
|
* the argument is ignored.
|
|
7
7
|
*/
|
|
8
8
|
export declare function init(_input?: InitInput | Promise<InitInput>): Promise<void>;
|
|
9
|
-
export { type AddMeshOptions, type Analysis, type AnalyzeOptions, type AutoRepairReport, type AutoRepairRequest, type BooleanOp, type BoundaryLoop, type Bounds, type BridgeReport, type BrushSelect, type CaptureRestReport, type ClosestHit, type ClosestPointOptions, type ColorRule, type Colormap, type ComponentSelect, type Contact, type CurvatureFieldDesc, type CutOptions, type CutReport, type DegenerateReport, type DistanceFieldDesc, type DragOptions, type DragSession, type EditOp, type EditRef, type EditResult, FastMeshError, type FastMeshErrorCode, type FieldHandle, type FieldStatus, type FillReport, type FilledLoop, type FindContactsOptions, type GrabReport, type Indices, type InflateReport, type InitInput, type IsolateReport, type JoinOptions, type JoinReport, type LassoSelect, type LoopId, type Mat3, type MeasureResult, type MeshChange, type MeshComponent, type MeshDistance, type MeshHandle, type MeshViews, type OffsetReport, type OrientReport, type OutOfRange, type Placement, type PlacementInput, type Positions, type Positions64, type Quat, type Range, type RayHit, type RaycastOptions, type RegisterMotion, type RegisterNotApplied, type RegisterOptions, type RegisterResult, type RegisterStatus, type RelaxReport, type RemeshReport, type RemoveReport, type RepairOp, type RepairReport, type RepairReportOf, type Rgba, Scene, type SceneLike, type SceneMeshViews, type SceneOptions, type SectionContour, type SectionDesc, type SectionGap, type SectionHandle, type SectionPlane, type SectionResult, type SelectSpec, type ShellReport, type SignMode, type SimplifyReport, type SmoothReport, type StretchReport, type SubdivideReport, type ThicknessFieldDesc, type UpdateMode, type Vec3, type VertexProtection, type VertexSelection, type WeldReport, computeBounds, computeVertexNormals };
|
|
9
|
+
export { type AddMeshOptions, type AlignBackend, type AlignDomain, type AlignReturn, type Analysis, type AnalyzeOptions, type AutoRepairOptions, type AutoRepairPreset, type AutoRepairReport, type AutoRepairRequest, type BeginStrokeOptions, type BooleanBackend, type BooleanDomain, type BooleanOp, type BooleanReturn, type BoundaryLoop, type Bounds, type BridgeLoopsOptions, type BridgeReport, type BrushSelect, type CaptureRestOptions, type CaptureRestReport, type CaptureStrokeOptions, type CaptureStrokeReport, type ClayOp, type ClayProfile, type ClayReport, type CleanOptions, type CleanReport, type ClosestHit, type ClosestPointOptions, type ColorRule, type Colormap, type ComponentSelect, type Contact, type CreaseOp, type CreaseReport, type CurvatureFieldDesc, type CutOptions, type CutReport, type DeformBackend, type DeformDomain, type DeformReturn, type DegenerateOptions, type DegenerateReport, type DistanceFieldDesc, type DragOptions, type DragSession, type EditOp, type EditRef, type EditResult, FastMeshError, type FastMeshErrorCode, type FieldHandle, type FieldStatus, type FillHolesOptions, type FillReport, type FilledLoop, type FilteredSculptOp, type FindContactsOptions, type FlattenMode, type FlattenOp, type FlattenReport, type GrabMethod, type GrabOp, type GrabReport, type Indices, type InflateMethod, type InflateOp, type InflateReport, type InitInput, type InspectBackend, type InspectDomain, type InspectReturn, type IsolateReport, type JoinOptions, type JoinReport, type LassoSelect, type LoopId, type ManifoldOptions, type ManifoldReport, type Mat3, type MeasureResult, type MeshChange, type MeshComponent, type MeshDistance, type MeshHandle, type MeshViews, type OffsetAlgorithm, type OffsetOptions, type OffsetReport, type OrientReport, type OutOfRange, type Placement, type PlacementInput, type Positions, type Positions64, type ProtectedSculptOp, type Quat, type Range, type RayHit, type RaycastOptions, type RegionRemeshOptions, type RegisterMotion, type RegisterNotApplied, type RegisterOptions, type RegisterResult, type RegisterStatus, type RelaxOp, type RelaxReport, type RemeshBackend, type RemeshDomain, type RemeshReport, type RemeshReturn, type RemoveReport, type RepairBackend, type RepairDomain, type RepairOp, type RepairReport, type RepairReportOf, type RepairReturn, type Rgba, Scene, type SceneDomains, type SceneDomainsLike, type SceneLike, type SceneMeshViews, type SceneOptions, type SculptBackend, type SculptDomain, type SculptOp, type SculptReport, type SculptReportOf, type SculptReturn, type SectionContour, type SectionDesc, type SectionGap, type SectionHandle, type SectionPlane, type SectionResult, type SelectSpec, type SelfIntersectOptions, type SelfIntersectReport, type SelfIntersectionMode, type ShellOptions, type ShellReport, type SignMode, type SimplifyOptions, type SimplifyReport, type SliverOptions, type SliverReport, type SmallComponentOptions, type SmoothMethod, type SmoothOp, type SmoothReport, type SplitStretchedOptions, type StretchReport, type SubdivideOptions, type SubdivideReport, type SurfaceFilter, type Symmetry, type SyncAlignDomain, type SyncBooleanDomain, type SyncDeformDomain, type SyncInspectDomain, type SyncRemeshDomain, type SyncRepairDomain, type SyncSceneDomains, type SyncSculptDomain, type ThicknessFieldDesc, type TwistMethod, type TwistOp, type TwistReport, type UpdateMode, type Vec3, type VertexProtection, type VertexSelection, type VoxelRemeshOptions, type WeldReport, type WorkerAlignDomain, type WorkerBooleanDomain, type WorkerDeformDomain, type WorkerInspectDomain, type WorkerRemeshDomain, type WorkerRepairDomain, type WorkerSceneDomains, type WorkerSculptDomain, computeBounds, computeVertexNormals, createAlignDomain, createBooleanDomain, createDeformDomain, createInspectDomain, createRemeshDomain, createRepairDomain, createSculptDomain };
|
package/dist/node.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { n as computeVertexNormals, r as markInitialized, t as computeBounds } from "./api-4kz45-Mq.js";
|
|
2
2
|
import { t as FastMeshError } from "./core-4OcWKu3r.js";
|
|
3
|
-
import {
|
|
3
|
+
import { _ as createBooleanDomain, f as createSculptDomain, g as createDeformDomain, h as createInspectDomain, m as createRemeshDomain, p as createRepairDomain, v as createAlignDomain } from "./views-BSy-Qeg8.js";
|
|
4
|
+
import { t as Scene } from "./scene-DUsj6uJD.js";
|
|
4
5
|
import { initSync } from "./wasm/fast_mesh_wasm.js";
|
|
5
6
|
import { readFileSync } from "node:fs";
|
|
6
7
|
// src/node.ts
|
|
@@ -13,4 +14,4 @@ markInitialized(initSync({ module: readFileSync(new URL("./wasm/fast_mesh_wasm_b
|
|
|
13
14
|
function init(_input) {
|
|
14
15
|
return Promise.resolve();
|
|
15
16
|
}
|
|
16
|
-
export { FastMeshError, Scene, computeBounds, computeVertexNormals, init };
|
|
17
|
+
export { FastMeshError, Scene, computeBounds, computeVertexNormals, createAlignDomain, createBooleanDomain, createDeformDomain, createInspectDomain, createRemeshDomain, createRepairDomain, createSculptDomain, init };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Hn as SectionResult, It as ColorRule, Vn as SectionPlane, Wt as DistanceFieldDesc, br as Bounds, gr as Range, xt as AddMeshOptions } from "./scene-like-CR_Dpohm.js";
|
|
2
2
|
/** A mesh, field or section id allocated on the main side. Unique per kind. */
|
|
3
3
|
type ClientId = number;
|
|
4
4
|
/** A {@link ColorRule} naming its field by client id. */
|
|
@@ -195,6 +195,8 @@ interface MeshChangeWire {
|
|
|
195
195
|
/** Slot counts after the change; 0 for a removed mesh. */
|
|
196
196
|
vertexSlots: number;
|
|
197
197
|
triangleSlots: number;
|
|
198
|
+
/** Local-render bounds after a geometry change; omitted when geometry is unchanged. */
|
|
199
|
+
bounds?: Bounds | null;
|
|
198
200
|
bytes: {
|
|
199
201
|
positions: ArrayBuffer | null;
|
|
200
202
|
normals: ArrayBuffer | null;
|
package/dist/r3f.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as SceneStore } from "./store-
|
|
3
|
-
import { n as BoundMesh, t as BindMeshOptions } from "./mesh-
|
|
1
|
+
import { vr as MeshHandle } from "./scene-like-CR_Dpohm.js";
|
|
2
|
+
import { t as SceneStore } from "./store-8HWG90Jg.js";
|
|
3
|
+
import { n as BoundMesh, t as BindMeshOptions } from "./mesh-BHTFxsXc.js";
|
|
4
4
|
import * as THREE from "three";
|
|
5
5
|
import { JSX } from "react";
|
|
6
6
|
import { EventHandlers } from "@react-three/fiber";
|
package/dist/r3f.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as FastMeshError } from "./core-4OcWKu3r.js";
|
|
2
2
|
import { c as useStoreSelector, i as useScene, l as StoreContext, t as SceneProvider } from "./react-DzrtrzZy.js";
|
|
3
3
|
import { s as meshState } from "./snapshot-BkbGPspK.js";
|
|
4
|
-
import { r as setFrameLoop } from "./store-
|
|
4
|
+
import { r as setFrameLoop } from "./store-BAzHRRkt.js";
|
|
5
5
|
import { t as bindMesh } from "./mesh-DIWD2F5-.js";
|
|
6
6
|
import * as THREE from "three";
|
|
7
7
|
import { createElement, useCallback, useContext, useLayoutEffect, useRef, useState } from "react";
|
package/dist/react.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as FastMeshError } from "./core-CJ9D6U5A.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as DisplayState, c as MeshState, d as SceneSnapshot, n as SectionPatch, p as SectionState, t as SceneStore } from "./store-
|
|
2
|
+
import { vr as MeshHandle, yr as SectionHandle } from "./scene-like-CR_Dpohm.js";
|
|
3
|
+
import { a as DisplayState, c as MeshState, d as SceneSnapshot, n as SectionPatch, p as SectionState, t as SceneStore } from "./store-8HWG90Jg.js";
|
|
4
4
|
import { ReactElement, ReactNode } from "react";
|
|
5
5
|
/** Provides `store` to the hooks below it. */
|
|
6
6
|
export declare function SceneProvider(props: {
|