geo-polygonize 0.35.1 → 0.36.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/geo_polygonize.wasm +0 -0
- package/dist/geo_polygonize_simd.wasm +0 -0
- package/dist/slim/cjs/bindings/ContainmentOptions.d.ts +0 -2
- package/dist/slim/cjs/bindings/NodingOptions.d.ts +0 -2
- package/dist/slim/cjs/bindings/PolygonizerOptions.d.ts +10 -17
- package/dist/slim/cjs/index.d.ts +0 -5
- package/dist/slim/cjs/index_slim.d.ts +0 -5
- package/dist/slim/cjs/index_slim.js +2 -7
- package/dist/slim/cjs/index_threads.d.ts +0 -5
- package/dist/slim/es/bindings/ContainmentOptions.d.ts +0 -2
- package/dist/slim/es/bindings/NodingOptions.d.ts +0 -2
- package/dist/slim/es/bindings/PolygonizerOptions.d.ts +10 -17
- package/dist/slim/es/index.d.ts +0 -5
- package/dist/slim/es/index_slim.d.ts +0 -5
- package/dist/slim/es/index_slim.js +2 -7
- package/dist/slim/es/index_threads.d.ts +0 -5
- package/dist/slim/pkg-wrapper/bindings/ContainmentOptions.d.ts +0 -2
- package/dist/slim/pkg-wrapper/bindings/NodingOptions.d.ts +0 -2
- package/dist/slim/pkg-wrapper/bindings/PolygonizerOptions.d.ts +10 -17
- package/dist/standard/cjs/bindings/ContainmentOptions.d.ts +0 -2
- package/dist/standard/cjs/bindings/NodingOptions.d.ts +0 -2
- package/dist/standard/cjs/bindings/PolygonizerOptions.d.ts +10 -17
- package/dist/standard/cjs/index.d.ts +0 -5
- package/dist/standard/cjs/index.js +4 -9
- package/dist/standard/cjs/index_slim.d.ts +0 -5
- package/dist/standard/cjs/index_threads.d.ts +0 -5
- package/dist/standard/es/bindings/ContainmentOptions.d.ts +0 -2
- package/dist/standard/es/bindings/NodingOptions.d.ts +0 -2
- package/dist/standard/es/bindings/PolygonizerOptions.d.ts +10 -17
- package/dist/standard/es/index.d.ts +0 -5
- package/dist/standard/es/index.js +4 -9
- package/dist/standard/es/index_slim.d.ts +0 -5
- package/dist/standard/es/index_threads.d.ts +0 -5
- package/dist/standard/pkg-wrapper/bindings/ContainmentOptions.d.ts +0 -2
- package/dist/standard/pkg-wrapper/bindings/NodingOptions.d.ts +0 -2
- package/dist/standard/pkg-wrapper/bindings/PolygonizerOptions.d.ts +10 -17
- package/dist/threads/es/bindings/ContainmentOptions.d.ts +0 -2
- package/dist/threads/es/bindings/NodingOptions.d.ts +0 -2
- package/dist/threads/es/bindings/PolygonizerOptions.d.ts +10 -17
- package/dist/threads/es/index.d.ts +0 -5
- package/dist/threads/es/index.js +2 -7
- package/dist/threads/es/index_slim.d.ts +0 -5
- package/dist/threads/es/index_threads.d.ts +0 -5
- package/dist/threads/pkg-wrapper/bindings/ContainmentOptions.d.ts +0 -2
- package/dist/threads/pkg-wrapper/bindings/NodingOptions.d.ts +0 -2
- package/dist/threads/pkg-wrapper/bindings/PolygonizerOptions.d.ts +10 -17
- package/package.json +3 -3
- package/dist/slim/cjs/bindings/IndexBackend.d.ts +0 -1
- package/dist/slim/cjs/bindings/SnapMode.d.ts +0 -1
- package/dist/slim/cjs/bindings/TargetProfile.d.ts +0 -1
- package/dist/slim/cjs/bindings/ZOptions.d.ts +0 -4
- package/dist/slim/cjs/bindings/ZPolicy.d.ts +0 -5
- package/dist/slim/es/bindings/IndexBackend.d.ts +0 -1
- package/dist/slim/es/bindings/SnapMode.d.ts +0 -1
- package/dist/slim/es/bindings/TargetProfile.d.ts +0 -1
- package/dist/slim/es/bindings/ZOptions.d.ts +0 -4
- package/dist/slim/es/bindings/ZPolicy.d.ts +0 -5
- package/dist/slim/pkg-wrapper/bindings/IndexBackend.d.ts +0 -1
- package/dist/slim/pkg-wrapper/bindings/SnapMode.d.ts +0 -1
- package/dist/slim/pkg-wrapper/bindings/TargetProfile.d.ts +0 -1
- package/dist/slim/pkg-wrapper/bindings/ZOptions.d.ts +0 -4
- package/dist/slim/pkg-wrapper/bindings/ZPolicy.d.ts +0 -5
- package/dist/standard/cjs/bindings/IndexBackend.d.ts +0 -1
- package/dist/standard/cjs/bindings/SnapMode.d.ts +0 -1
- package/dist/standard/cjs/bindings/TargetProfile.d.ts +0 -1
- package/dist/standard/cjs/bindings/ZOptions.d.ts +0 -4
- package/dist/standard/cjs/bindings/ZPolicy.d.ts +0 -5
- package/dist/standard/es/bindings/IndexBackend.d.ts +0 -1
- package/dist/standard/es/bindings/SnapMode.d.ts +0 -1
- package/dist/standard/es/bindings/TargetProfile.d.ts +0 -1
- package/dist/standard/es/bindings/ZOptions.d.ts +0 -4
- package/dist/standard/es/bindings/ZPolicy.d.ts +0 -5
- package/dist/standard/pkg-wrapper/bindings/IndexBackend.d.ts +0 -1
- package/dist/standard/pkg-wrapper/bindings/SnapMode.d.ts +0 -1
- package/dist/standard/pkg-wrapper/bindings/TargetProfile.d.ts +0 -1
- package/dist/standard/pkg-wrapper/bindings/ZOptions.d.ts +0 -4
- package/dist/standard/pkg-wrapper/bindings/ZPolicy.d.ts +0 -5
- package/dist/threads/es/bindings/IndexBackend.d.ts +0 -1
- package/dist/threads/es/bindings/SnapMode.d.ts +0 -1
- package/dist/threads/es/bindings/TargetProfile.d.ts +0 -1
- package/dist/threads/es/bindings/ZOptions.d.ts +0 -4
- package/dist/threads/es/bindings/ZPolicy.d.ts +0 -5
- package/dist/threads/pkg-wrapper/bindings/IndexBackend.d.ts +0 -1
- package/dist/threads/pkg-wrapper/bindings/SnapMode.d.ts +0 -1
- package/dist/threads/pkg-wrapper/bindings/TargetProfile.d.ts +0 -1
- package/dist/threads/pkg-wrapper/bindings/ZOptions.d.ts +0 -4
- package/dist/threads/pkg-wrapper/bindings/ZPolicy.d.ts +0 -5
package/dist/geo_polygonize.wasm
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -4,9 +4,6 @@ import type { DiagnosticsOptions } from "./DiagnosticsOptions";
|
|
|
4
4
|
import type { NodingOptions } from "./NodingOptions";
|
|
5
5
|
import type { ProvenanceOptions } from "./ProvenanceOptions";
|
|
6
6
|
import type { SnapStrategy } from "./SnapStrategy";
|
|
7
|
-
import type { TargetProfile } from "./TargetProfile";
|
|
8
|
-
import type { TilingOptions } from "./TilingOptions";
|
|
9
|
-
import type { ZOptions } from "./ZOptions";
|
|
10
7
|
/**
|
|
11
8
|
* The canonical configuration object for the `geo-polygonize` engine.
|
|
12
9
|
*
|
|
@@ -14,12 +11,6 @@ import type { ZOptions } from "./ZOptions";
|
|
|
14
11
|
* topological robustness, feature output, containment policies, noding, and determinism.
|
|
15
12
|
*/
|
|
16
13
|
export type PolygonizerOptions = {
|
|
17
|
-
/**
|
|
18
|
-
* Determines the execution environment profile (e.g., Native, WasmSingleThread, WasmThreads).
|
|
19
|
-
*
|
|
20
|
-
* Default: `TargetProfile::Native`
|
|
21
|
-
*/
|
|
22
|
-
target: TargetProfile;
|
|
23
14
|
/**
|
|
24
15
|
* Whether to robustly node the input before polygonization.
|
|
25
16
|
*
|
|
@@ -39,6 +30,16 @@ export type PolygonizerOptions = {
|
|
|
39
30
|
* Default: `1e-10`
|
|
40
31
|
*/
|
|
41
32
|
snap_grid_size: number;
|
|
33
|
+
/**
|
|
34
|
+
* Snap input segments to nearby vertices from exact-noded input linework before grid noding.
|
|
35
|
+
*
|
|
36
|
+
* A value of `0.0` disables pre-snap. This mirrors the CFB/Shapely
|
|
37
|
+
* `snap(line, unary_union(all_lines), tolerance)` step closely enough to
|
|
38
|
+
* close small CAD gaps before polygonization.
|
|
39
|
+
*
|
|
40
|
+
* Default: `0.0`
|
|
41
|
+
*/
|
|
42
|
+
pre_snap_tolerance: number;
|
|
42
43
|
/**
|
|
43
44
|
* If `true`, only pure, outermost polygonal shells are returned.
|
|
44
45
|
*
|
|
@@ -65,14 +66,6 @@ export type PolygonizerOptions = {
|
|
|
65
66
|
* during face formation.
|
|
66
67
|
*/
|
|
67
68
|
containment: ContainmentOptions;
|
|
68
|
-
/**
|
|
69
|
-
* Optional configuration for tiled, distributed execution across huge datasets.
|
|
70
|
-
*/
|
|
71
|
-
tiling?: TilingOptions;
|
|
72
|
-
/**
|
|
73
|
-
* Configures Z-axis coordinate handling.
|
|
74
|
-
*/
|
|
75
|
-
z: ZOptions;
|
|
76
69
|
/**
|
|
77
70
|
* Configuration for enforcing exact topological determinism.
|
|
78
71
|
*/
|
package/dist/slim/cjs/index.d.ts
CHANGED
|
@@ -4,17 +4,12 @@ export * from "./bindings/PolygonizerOptions";
|
|
|
4
4
|
export * from "./bindings/ContainmentOptions";
|
|
5
5
|
export * from "./bindings/DeterminismOptions";
|
|
6
6
|
export * from "./bindings/DiagnosticsOptions";
|
|
7
|
-
export * from "./bindings/IndexBackend";
|
|
8
7
|
export * from "./bindings/NodingBackend";
|
|
9
8
|
export * from "./bindings/NodingOptions";
|
|
10
9
|
export * from "./bindings/ProvenanceOptions";
|
|
11
|
-
export * from "./bindings/SnapMode";
|
|
12
10
|
export * from "./bindings/SnapStrategy";
|
|
13
|
-
export * from "./bindings/TargetProfile";
|
|
14
11
|
export * from "./bindings/TileOwnershipPolicy";
|
|
15
12
|
export * from "./bindings/TilingOptions";
|
|
16
13
|
export * from "./bindings/TouchPolicy";
|
|
17
|
-
export * from "./bindings/ZOptions";
|
|
18
|
-
export * from "./bindings/ZPolicy";
|
|
19
14
|
export * from "./cfb";
|
|
20
15
|
export default function init(_input?: any): Promise<typeof exports>;
|
|
@@ -4,17 +4,12 @@ export * from "./bindings/PolygonizerOptions";
|
|
|
4
4
|
export * from "./bindings/ContainmentOptions";
|
|
5
5
|
export * from "./bindings/DeterminismOptions";
|
|
6
6
|
export * from "./bindings/DiagnosticsOptions";
|
|
7
|
-
export * from "./bindings/IndexBackend";
|
|
8
7
|
export * from "./bindings/NodingBackend";
|
|
9
8
|
export * from "./bindings/NodingOptions";
|
|
10
9
|
export * from "./bindings/ProvenanceOptions";
|
|
11
|
-
export * from "./bindings/SnapMode";
|
|
12
10
|
export * from "./bindings/SnapStrategy";
|
|
13
|
-
export * from "./bindings/TargetProfile";
|
|
14
11
|
export * from "./bindings/TileOwnershipPolicy";
|
|
15
12
|
export * from "./bindings/TilingOptions";
|
|
16
13
|
export * from "./bindings/TouchPolicy";
|
|
17
|
-
export * from "./bindings/ZOptions";
|
|
18
|
-
export * from "./bindings/ZPolicy";
|
|
19
14
|
export * from "./cfb";
|
|
20
15
|
export declare function initBest(scalarModule: any, simdModule?: any): Promise<typeof scalarExports>;
|
|
@@ -833,21 +833,16 @@ var scalarExports = /*#__PURE__*/Object.freeze({
|
|
|
833
833
|
});
|
|
834
834
|
|
|
835
835
|
const cfbRobustOptions = {
|
|
836
|
-
target: "Native",
|
|
837
836
|
node_input: true,
|
|
838
|
-
snap_grid_size: 0.
|
|
837
|
+
snap_grid_size: 0.1,
|
|
838
|
+
pre_snap_tolerance: 0.5,
|
|
839
839
|
extract_only_polygonal: false,
|
|
840
840
|
snap_strategy: "GeosCompat",
|
|
841
841
|
noding: {
|
|
842
842
|
backend: "Snap",
|
|
843
|
-
snap_mode: "FloatEpsilonDedup",
|
|
844
843
|
},
|
|
845
844
|
containment: {
|
|
846
845
|
touch_policy: "AllowPointTouchDisallowEdgeShare",
|
|
847
|
-
index_backend: "RStar",
|
|
848
|
-
},
|
|
849
|
-
z: {
|
|
850
|
-
policy: "InterpolateAlongEdge",
|
|
851
846
|
},
|
|
852
847
|
determinism: {
|
|
853
848
|
canonical_sort: true,
|
|
@@ -4,17 +4,12 @@ export * from "./bindings/PolygonizerOptions";
|
|
|
4
4
|
export * from "./bindings/ContainmentOptions";
|
|
5
5
|
export * from "./bindings/DeterminismOptions";
|
|
6
6
|
export * from "./bindings/DiagnosticsOptions";
|
|
7
|
-
export * from "./bindings/IndexBackend";
|
|
8
7
|
export * from "./bindings/NodingBackend";
|
|
9
8
|
export * from "./bindings/NodingOptions";
|
|
10
9
|
export * from "./bindings/ProvenanceOptions";
|
|
11
|
-
export * from "./bindings/SnapMode";
|
|
12
10
|
export * from "./bindings/SnapStrategy";
|
|
13
|
-
export * from "./bindings/TargetProfile";
|
|
14
11
|
export * from "./bindings/TileOwnershipPolicy";
|
|
15
12
|
export * from "./bindings/TilingOptions";
|
|
16
13
|
export * from "./bindings/TouchPolicy";
|
|
17
|
-
export * from "./bindings/ZOptions";
|
|
18
|
-
export * from "./bindings/ZPolicy";
|
|
19
14
|
export * from "./cfb";
|
|
20
15
|
export default init;
|
|
@@ -4,9 +4,6 @@ import type { DiagnosticsOptions } from "./DiagnosticsOptions";
|
|
|
4
4
|
import type { NodingOptions } from "./NodingOptions";
|
|
5
5
|
import type { ProvenanceOptions } from "./ProvenanceOptions";
|
|
6
6
|
import type { SnapStrategy } from "./SnapStrategy";
|
|
7
|
-
import type { TargetProfile } from "./TargetProfile";
|
|
8
|
-
import type { TilingOptions } from "./TilingOptions";
|
|
9
|
-
import type { ZOptions } from "./ZOptions";
|
|
10
7
|
/**
|
|
11
8
|
* The canonical configuration object for the `geo-polygonize` engine.
|
|
12
9
|
*
|
|
@@ -14,12 +11,6 @@ import type { ZOptions } from "./ZOptions";
|
|
|
14
11
|
* topological robustness, feature output, containment policies, noding, and determinism.
|
|
15
12
|
*/
|
|
16
13
|
export type PolygonizerOptions = {
|
|
17
|
-
/**
|
|
18
|
-
* Determines the execution environment profile (e.g., Native, WasmSingleThread, WasmThreads).
|
|
19
|
-
*
|
|
20
|
-
* Default: `TargetProfile::Native`
|
|
21
|
-
*/
|
|
22
|
-
target: TargetProfile;
|
|
23
14
|
/**
|
|
24
15
|
* Whether to robustly node the input before polygonization.
|
|
25
16
|
*
|
|
@@ -39,6 +30,16 @@ export type PolygonizerOptions = {
|
|
|
39
30
|
* Default: `1e-10`
|
|
40
31
|
*/
|
|
41
32
|
snap_grid_size: number;
|
|
33
|
+
/**
|
|
34
|
+
* Snap input segments to nearby vertices from exact-noded input linework before grid noding.
|
|
35
|
+
*
|
|
36
|
+
* A value of `0.0` disables pre-snap. This mirrors the CFB/Shapely
|
|
37
|
+
* `snap(line, unary_union(all_lines), tolerance)` step closely enough to
|
|
38
|
+
* close small CAD gaps before polygonization.
|
|
39
|
+
*
|
|
40
|
+
* Default: `0.0`
|
|
41
|
+
*/
|
|
42
|
+
pre_snap_tolerance: number;
|
|
42
43
|
/**
|
|
43
44
|
* If `true`, only pure, outermost polygonal shells are returned.
|
|
44
45
|
*
|
|
@@ -65,14 +66,6 @@ export type PolygonizerOptions = {
|
|
|
65
66
|
* during face formation.
|
|
66
67
|
*/
|
|
67
68
|
containment: ContainmentOptions;
|
|
68
|
-
/**
|
|
69
|
-
* Optional configuration for tiled, distributed execution across huge datasets.
|
|
70
|
-
*/
|
|
71
|
-
tiling?: TilingOptions;
|
|
72
|
-
/**
|
|
73
|
-
* Configures Z-axis coordinate handling.
|
|
74
|
-
*/
|
|
75
|
-
z: ZOptions;
|
|
76
69
|
/**
|
|
77
70
|
* Configuration for enforcing exact topological determinism.
|
|
78
71
|
*/
|
package/dist/slim/es/index.d.ts
CHANGED
|
@@ -4,17 +4,12 @@ export * from "./bindings/PolygonizerOptions";
|
|
|
4
4
|
export * from "./bindings/ContainmentOptions";
|
|
5
5
|
export * from "./bindings/DeterminismOptions";
|
|
6
6
|
export * from "./bindings/DiagnosticsOptions";
|
|
7
|
-
export * from "./bindings/IndexBackend";
|
|
8
7
|
export * from "./bindings/NodingBackend";
|
|
9
8
|
export * from "./bindings/NodingOptions";
|
|
10
9
|
export * from "./bindings/ProvenanceOptions";
|
|
11
|
-
export * from "./bindings/SnapMode";
|
|
12
10
|
export * from "./bindings/SnapStrategy";
|
|
13
|
-
export * from "./bindings/TargetProfile";
|
|
14
11
|
export * from "./bindings/TileOwnershipPolicy";
|
|
15
12
|
export * from "./bindings/TilingOptions";
|
|
16
13
|
export * from "./bindings/TouchPolicy";
|
|
17
|
-
export * from "./bindings/ZOptions";
|
|
18
|
-
export * from "./bindings/ZPolicy";
|
|
19
14
|
export * from "./cfb";
|
|
20
15
|
export default function init(_input?: any): Promise<typeof exports>;
|
|
@@ -4,17 +4,12 @@ export * from "./bindings/PolygonizerOptions";
|
|
|
4
4
|
export * from "./bindings/ContainmentOptions";
|
|
5
5
|
export * from "./bindings/DeterminismOptions";
|
|
6
6
|
export * from "./bindings/DiagnosticsOptions";
|
|
7
|
-
export * from "./bindings/IndexBackend";
|
|
8
7
|
export * from "./bindings/NodingBackend";
|
|
9
8
|
export * from "./bindings/NodingOptions";
|
|
10
9
|
export * from "./bindings/ProvenanceOptions";
|
|
11
|
-
export * from "./bindings/SnapMode";
|
|
12
10
|
export * from "./bindings/SnapStrategy";
|
|
13
|
-
export * from "./bindings/TargetProfile";
|
|
14
11
|
export * from "./bindings/TileOwnershipPolicy";
|
|
15
12
|
export * from "./bindings/TilingOptions";
|
|
16
13
|
export * from "./bindings/TouchPolicy";
|
|
17
|
-
export * from "./bindings/ZOptions";
|
|
18
|
-
export * from "./bindings/ZPolicy";
|
|
19
14
|
export * from "./cfb";
|
|
20
15
|
export declare function initBest(scalarModule: any, simdModule?: any): Promise<typeof scalarExports>;
|
|
@@ -830,21 +830,16 @@ var scalarExports = /*#__PURE__*/Object.freeze({
|
|
|
830
830
|
});
|
|
831
831
|
|
|
832
832
|
const cfbRobustOptions = {
|
|
833
|
-
target: "Native",
|
|
834
833
|
node_input: true,
|
|
835
|
-
snap_grid_size: 0.
|
|
834
|
+
snap_grid_size: 0.1,
|
|
835
|
+
pre_snap_tolerance: 0.5,
|
|
836
836
|
extract_only_polygonal: false,
|
|
837
837
|
snap_strategy: "GeosCompat",
|
|
838
838
|
noding: {
|
|
839
839
|
backend: "Snap",
|
|
840
|
-
snap_mode: "FloatEpsilonDedup",
|
|
841
840
|
},
|
|
842
841
|
containment: {
|
|
843
842
|
touch_policy: "AllowPointTouchDisallowEdgeShare",
|
|
844
|
-
index_backend: "RStar",
|
|
845
|
-
},
|
|
846
|
-
z: {
|
|
847
|
-
policy: "InterpolateAlongEdge",
|
|
848
843
|
},
|
|
849
844
|
determinism: {
|
|
850
845
|
canonical_sort: true,
|
|
@@ -4,17 +4,12 @@ export * from "./bindings/PolygonizerOptions";
|
|
|
4
4
|
export * from "./bindings/ContainmentOptions";
|
|
5
5
|
export * from "./bindings/DeterminismOptions";
|
|
6
6
|
export * from "./bindings/DiagnosticsOptions";
|
|
7
|
-
export * from "./bindings/IndexBackend";
|
|
8
7
|
export * from "./bindings/NodingBackend";
|
|
9
8
|
export * from "./bindings/NodingOptions";
|
|
10
9
|
export * from "./bindings/ProvenanceOptions";
|
|
11
|
-
export * from "./bindings/SnapMode";
|
|
12
10
|
export * from "./bindings/SnapStrategy";
|
|
13
|
-
export * from "./bindings/TargetProfile";
|
|
14
11
|
export * from "./bindings/TileOwnershipPolicy";
|
|
15
12
|
export * from "./bindings/TilingOptions";
|
|
16
13
|
export * from "./bindings/TouchPolicy";
|
|
17
|
-
export * from "./bindings/ZOptions";
|
|
18
|
-
export * from "./bindings/ZPolicy";
|
|
19
14
|
export * from "./cfb";
|
|
20
15
|
export default init;
|
|
@@ -4,9 +4,6 @@ import type { DiagnosticsOptions } from "./DiagnosticsOptions";
|
|
|
4
4
|
import type { NodingOptions } from "./NodingOptions";
|
|
5
5
|
import type { ProvenanceOptions } from "./ProvenanceOptions";
|
|
6
6
|
import type { SnapStrategy } from "./SnapStrategy";
|
|
7
|
-
import type { TargetProfile } from "./TargetProfile";
|
|
8
|
-
import type { TilingOptions } from "./TilingOptions";
|
|
9
|
-
import type { ZOptions } from "./ZOptions";
|
|
10
7
|
/**
|
|
11
8
|
* The canonical configuration object for the `geo-polygonize` engine.
|
|
12
9
|
*
|
|
@@ -14,12 +11,6 @@ import type { ZOptions } from "./ZOptions";
|
|
|
14
11
|
* topological robustness, feature output, containment policies, noding, and determinism.
|
|
15
12
|
*/
|
|
16
13
|
export type PolygonizerOptions = {
|
|
17
|
-
/**
|
|
18
|
-
* Determines the execution environment profile (e.g., Native, WasmSingleThread, WasmThreads).
|
|
19
|
-
*
|
|
20
|
-
* Default: `TargetProfile::Native`
|
|
21
|
-
*/
|
|
22
|
-
target: TargetProfile;
|
|
23
14
|
/**
|
|
24
15
|
* Whether to robustly node the input before polygonization.
|
|
25
16
|
*
|
|
@@ -39,6 +30,16 @@ export type PolygonizerOptions = {
|
|
|
39
30
|
* Default: `1e-10`
|
|
40
31
|
*/
|
|
41
32
|
snap_grid_size: number;
|
|
33
|
+
/**
|
|
34
|
+
* Snap input segments to nearby vertices from exact-noded input linework before grid noding.
|
|
35
|
+
*
|
|
36
|
+
* A value of `0.0` disables pre-snap. This mirrors the CFB/Shapely
|
|
37
|
+
* `snap(line, unary_union(all_lines), tolerance)` step closely enough to
|
|
38
|
+
* close small CAD gaps before polygonization.
|
|
39
|
+
*
|
|
40
|
+
* Default: `0.0`
|
|
41
|
+
*/
|
|
42
|
+
pre_snap_tolerance: number;
|
|
42
43
|
/**
|
|
43
44
|
* If `true`, only pure, outermost polygonal shells are returned.
|
|
44
45
|
*
|
|
@@ -65,14 +66,6 @@ export type PolygonizerOptions = {
|
|
|
65
66
|
* during face formation.
|
|
66
67
|
*/
|
|
67
68
|
containment: ContainmentOptions;
|
|
68
|
-
/**
|
|
69
|
-
* Optional configuration for tiled, distributed execution across huge datasets.
|
|
70
|
-
*/
|
|
71
|
-
tiling?: TilingOptions;
|
|
72
|
-
/**
|
|
73
|
-
* Configures Z-axis coordinate handling.
|
|
74
|
-
*/
|
|
75
|
-
z: ZOptions;
|
|
76
69
|
/**
|
|
77
70
|
* Configuration for enforcing exact topological determinism.
|
|
78
71
|
*/
|
|
@@ -4,9 +4,6 @@ import type { DiagnosticsOptions } from "./DiagnosticsOptions";
|
|
|
4
4
|
import type { NodingOptions } from "./NodingOptions";
|
|
5
5
|
import type { ProvenanceOptions } from "./ProvenanceOptions";
|
|
6
6
|
import type { SnapStrategy } from "./SnapStrategy";
|
|
7
|
-
import type { TargetProfile } from "./TargetProfile";
|
|
8
|
-
import type { TilingOptions } from "./TilingOptions";
|
|
9
|
-
import type { ZOptions } from "./ZOptions";
|
|
10
7
|
/**
|
|
11
8
|
* The canonical configuration object for the `geo-polygonize` engine.
|
|
12
9
|
*
|
|
@@ -14,12 +11,6 @@ import type { ZOptions } from "./ZOptions";
|
|
|
14
11
|
* topological robustness, feature output, containment policies, noding, and determinism.
|
|
15
12
|
*/
|
|
16
13
|
export type PolygonizerOptions = {
|
|
17
|
-
/**
|
|
18
|
-
* Determines the execution environment profile (e.g., Native, WasmSingleThread, WasmThreads).
|
|
19
|
-
*
|
|
20
|
-
* Default: `TargetProfile::Native`
|
|
21
|
-
*/
|
|
22
|
-
target: TargetProfile;
|
|
23
14
|
/**
|
|
24
15
|
* Whether to robustly node the input before polygonization.
|
|
25
16
|
*
|
|
@@ -39,6 +30,16 @@ export type PolygonizerOptions = {
|
|
|
39
30
|
* Default: `1e-10`
|
|
40
31
|
*/
|
|
41
32
|
snap_grid_size: number;
|
|
33
|
+
/**
|
|
34
|
+
* Snap input segments to nearby vertices from exact-noded input linework before grid noding.
|
|
35
|
+
*
|
|
36
|
+
* A value of `0.0` disables pre-snap. This mirrors the CFB/Shapely
|
|
37
|
+
* `snap(line, unary_union(all_lines), tolerance)` step closely enough to
|
|
38
|
+
* close small CAD gaps before polygonization.
|
|
39
|
+
*
|
|
40
|
+
* Default: `0.0`
|
|
41
|
+
*/
|
|
42
|
+
pre_snap_tolerance: number;
|
|
42
43
|
/**
|
|
43
44
|
* If `true`, only pure, outermost polygonal shells are returned.
|
|
44
45
|
*
|
|
@@ -65,14 +66,6 @@ export type PolygonizerOptions = {
|
|
|
65
66
|
* during face formation.
|
|
66
67
|
*/
|
|
67
68
|
containment: ContainmentOptions;
|
|
68
|
-
/**
|
|
69
|
-
* Optional configuration for tiled, distributed execution across huge datasets.
|
|
70
|
-
*/
|
|
71
|
-
tiling?: TilingOptions;
|
|
72
|
-
/**
|
|
73
|
-
* Configures Z-axis coordinate handling.
|
|
74
|
-
*/
|
|
75
|
-
z: ZOptions;
|
|
76
69
|
/**
|
|
77
70
|
* Configuration for enforcing exact topological determinism.
|
|
78
71
|
*/
|
|
@@ -4,17 +4,12 @@ export * from "./bindings/PolygonizerOptions";
|
|
|
4
4
|
export * from "./bindings/ContainmentOptions";
|
|
5
5
|
export * from "./bindings/DeterminismOptions";
|
|
6
6
|
export * from "./bindings/DiagnosticsOptions";
|
|
7
|
-
export * from "./bindings/IndexBackend";
|
|
8
7
|
export * from "./bindings/NodingBackend";
|
|
9
8
|
export * from "./bindings/NodingOptions";
|
|
10
9
|
export * from "./bindings/ProvenanceOptions";
|
|
11
|
-
export * from "./bindings/SnapMode";
|
|
12
10
|
export * from "./bindings/SnapStrategy";
|
|
13
|
-
export * from "./bindings/TargetProfile";
|
|
14
11
|
export * from "./bindings/TileOwnershipPolicy";
|
|
15
12
|
export * from "./bindings/TilingOptions";
|
|
16
13
|
export * from "./bindings/TouchPolicy";
|
|
17
|
-
export * from "./bindings/ZOptions";
|
|
18
|
-
export * from "./bindings/ZPolicy";
|
|
19
14
|
export * from "./cfb";
|
|
20
15
|
export default function init(_input?: any): Promise<typeof exports>;
|