-
Notifications
You must be signed in to change notification settings - Fork 3
Add Conversion jobs #277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
cnovel
wants to merge
21
commits into
main
Choose a base branch
from
feature/ConversionJobs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add Conversion jobs #277
Changes from 9 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
7cb5398
Add support for Conversion jobs
cnovel 07b0fdf
Fix comments
cnovel 3a81965
Add CS Tiler (#276)
cnovel 6cd8e9f
Add TS part
cnovel 7268281
Fix example
cnovel dfd85f2
Fix again
cnovel 5012607
Merge remote-tracking branch 'origin/main' into feature/ConversionJobs
cnovel 7759d94
Fix test
cnovel f65cf7d
Fix typo
cnovel 4fb999b
Fix typos
cnovel faad59d
Fix issues for TS
cnovel 5951adb
Comment CS Tiler as it is not yet ready
cnovel a0c8c1d
Fix some issues
cnovel 9b23495
Fix indentation
cnovel 4743fab
Merge remote-tracking branch 'origin/main' into feature/ConversionJobs
cnovel 1d391a8
Remove
cnovel 5cd6ee0
Update index.node.ts
dbiguenet 5126d77
Update index.web.ts
dbiguenet e88242e
Update index.node.ts
dbiguenet d1f2a7b
Update index.web.ts
dbiguenet d819fab
Update index.web.ts
dbiguenet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| ================== | ||
| ContextScene Tiler | ||
| ================== | ||
|
|
||
| The *ContextScene Tiler* job allows you to transform a part of a ContextScene to 3D Tiles for viewing purposes. | ||
|
|
||
| .. contents:: Quick access | ||
| :local: | ||
| :depth: 2 | ||
|
|
||
| Examples | ||
| ======== | ||
|
|
||
| In this example, we will create a specification for submitting a ContextScene Tiler job tiling Cameras. | ||
|
|
||
| .. literalinclude:: examples/cs_tiler_specs.py | ||
| :language: Python | ||
|
|
||
| Classes | ||
| ======= | ||
|
|
||
| .. currentmodule:: reality_capture.specifications.cs_tiler | ||
|
|
||
| .. autopydantic_model:: ContextSceneTilerSpecificationsCreate | ||
|
|
||
| .. autopydantic_model:: ContextSceneTilerSpecifications | ||
|
|
||
| .. autopydantic_model:: CSTilerInputs | ||
| :model-show-json: False | ||
|
|
||
| .. autopydantic_model:: CSTilerOptions | ||
| :model-show-json: False | ||
|
|
||
| .. autoclass:: CSObject | ||
| :show-inheritance: | ||
| :members: | ||
| :undoc-members: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| from reality_capture.specifications.cs_tiler import (ContextSceneTilerSpecificationsCreate, CSTilerInputs, | ||
| CSTilerOptions, CSObject) | ||
|
|
||
| inputs = CSTilerInputs(scene="dbad181b-5079-4224-8561-96ad218bcfc9") | ||
| options = CSTilerOptions(objectToTile=CSObject.CAMERAS) | ||
|
|
||
| specs = ContextSceneTilerSpecificationsCreate(inputs=inputs, options=options) |
7 changes: 7 additions & 0 deletions
7
python_sdk/docs/specifications/examples/mesh_sampling_specs.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| from reality_capture.specifications.mesh_sampling import (MeshSamplingSpecificationsCreate, MeshSamplingInputs, | ||
| MeshSamplingOptions, MeshSamplingFormat) | ||
|
|
||
| inputs = MeshSamplingInputs(meshes=["dbad181b-5079-4224-8561-96ad218bcfc9", "ea881e3e-b0e3-4b23-bc3f-4ee8e9acdf61"]) | ||
| options = MeshSamplingOptions(outputFormat=MeshSamplingFormat.THREE_D_TILES_GLBC) | ||
|
|
||
| specs = MeshSamplingSpecificationsCreate(inputs=inputs, options=options) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| from reality_capture.specifications.point_cloud_conversion import (PointCloudConversionSpecificationsCreate, | ||
| PCConversionInputs, PCConversionOptions, | ||
| PCConversionFormat) | ||
|
|
||
| inputs = PCConversionInputs(pointCloud="e3e12e4f-9fe0-4169-9571-41ecebd8c229") | ||
| options = PCConversionOptions(format=PCConversionFormat.LAS) | ||
|
|
||
| specs = PointCloudConversionSpecificationsCreate(inputs=inputs, options=options) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| from reality_capture.specifications.point_cloud_optimization import (PCOptimizationSpecificationsCreate, | ||
| PCOptimizationFormat, PCOptimizationInputs, | ||
| PCOptimizationOptions) | ||
|
|
||
| inputs = PCOptimizationInputs(pointClouds=["dbad181b-5079-4224-8561-96ad218bcfc9", | ||
| "ea881e3e-b0e3-4b23-bc3f-4ee8e9acdf61"]) | ||
| options = PCOptimizationOptions(outputFormat=PCOptimizationFormat.THREE_D_TILES_GLBC) | ||
|
|
||
| specs = PCOptimizationSpecificationsCreate(inputs=inputs, options=options) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| from reality_capture.specifications.tile_map_optimization import (TileMapOptimizationSpecificationsCreate, | ||
| TileMapOptimizationInputs, TileMapOptimizationOptions, | ||
| TileMapOptimizationFormat) | ||
|
|
||
| inputs = TileMapOptimizationInputs(tileMaps=["dbad181b-5079-4224-8561-96ad218bcfc9", | ||
| "ea881e3e-b0e3-4b23-bc3f-4ee8e9acdf61"]) | ||
| options = TileMapOptimizationOptions(format=TileMapOptimizationFormat.XYZ_TILE_MAP, backgroundColor="#000000") | ||
|
cnovel marked this conversation as resolved.
Outdated
|
||
|
|
||
| specs = TileMapOptimizationSpecificationsCreate(inputs=inputs, options=options) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| from reality_capture.specifications.vector_optimization import (VectorOptimizationSpecificationsCreate, | ||
| VectorOptimizationInputs, VectorOptimizationOptions, | ||
| VectorOptimizationFormat) | ||
|
|
||
| inputs = VectorOptimizationInputs(vectors=["dbad181b-5079-4224-8561-96ad218bcfc9", | ||
| "ea881e3e-b0e3-4b23-bc3f-4ee8e9acdf61"]) | ||
| options = VectorOptimizationOptions(format=VectorOptimizationFormat.FEATURE_DB, featureClassDisplayName="Road") | ||
|
cnovel marked this conversation as resolved.
Outdated
|
||
|
|
||
| specs = VectorOptimizationSpecificationsCreate(inputs=inputs, options=options) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| ============= | ||
| Mesh sampling | ||
| ============= | ||
|
|
||
| The *mesh sampling* job takes one or multiple reality data meshes as an input and will sample and consolidate them into a single point cloud. | ||
|
|
||
| .. contents:: Quick access | ||
| :local: | ||
| :depth: 2 | ||
|
|
||
| Examples | ||
| ======== | ||
|
|
||
| In this example, we create a specification for submitting a mesh sampling job to 3D Tiles format: | ||
|
|
||
| .. literalinclude:: examples/mesh_sampling_specs.py | ||
| :language: Python | ||
|
|
||
| Classes | ||
| ======= | ||
|
|
||
| .. currentmodule:: reality_capture.specifications.mesh_sampling | ||
|
|
||
| .. autopydantic_model:: MeshSamplingSpecificationsCreate | ||
|
|
||
| .. autopydantic_model:: MeshSamplingSpecifications | ||
|
|
||
| .. autopydantic_model:: MeshSamplingInputs | ||
| :model-show-json: False | ||
|
|
||
| .. autopydantic_model:: MeshSamplingOptions | ||
| :model-show-json: False | ||
|
|
||
| .. autoclass:: MeshSamplingFormat | ||
| :show-inheritance: | ||
| :members: | ||
| :undoc-members: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| ====================== | ||
| Point cloud conversion | ||
| ====================== | ||
|
|
||
| The *point cloud conversion* job takes a reality data point cloud as an input and will convert it in the selected format. | ||
| Should multiple point clouds be present in the reality data, each point cloud will be converted to a different file. | ||
|
|
||
| .. contents:: Quick access | ||
| :local: | ||
| :depth: 2 | ||
|
|
||
| Examples | ||
| ======== | ||
|
|
||
| In this example, we create a specification for submitting a point cloud conversion job to LAS format: | ||
|
|
||
| .. literalinclude:: examples/pc_conv_specs.py | ||
| :language: Python | ||
|
|
||
| Classes | ||
| ======= | ||
|
|
||
| .. currentmodule:: reality_capture.specifications.point_cloud_conversion | ||
|
|
||
| .. autopydantic_model:: PointCloudConversionSpecificationsCreate | ||
|
|
||
| .. autopydantic_model:: PointCloudConversionSpecifications | ||
|
|
||
| .. autopydantic_model:: PCConversionInputs | ||
| :model-show-json: False | ||
|
|
||
| .. autopydantic_model:: PCConversionOptions | ||
| :model-show-json: False | ||
|
|
||
| .. autoclass:: PCConversionFormat | ||
| :show-inheritance: | ||
| :members: | ||
| :undoc-members: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| ======================== | ||
| Point cloud optimization | ||
| ======================== | ||
|
|
||
| The *point cloud optimization* job takes one or multiple reality data point cloud as an input and will consolidate them into a single point cloud. | ||
|
|
||
| .. contents:: Quick access | ||
| :local: | ||
| :depth: 2 | ||
|
|
||
| Examples | ||
| ======== | ||
|
|
||
| In this example, we create a specification for submitting a point cloud optimization job to 3D Tiles format: | ||
|
|
||
| .. literalinclude:: examples/pc_optim_specs.py | ||
| :language: Python | ||
|
|
||
| Classes | ||
| ======= | ||
|
|
||
| .. currentmodule:: reality_capture.specifications.point_cloud_optimization | ||
|
|
||
| .. autopydantic_model:: PCOptimizationSpecificationsCreate | ||
|
|
||
| .. autopydantic_model:: PCOptimizationSpecifications | ||
|
|
||
| .. autopydantic_model:: PCOptimizationInputs | ||
| :model-show-json: False | ||
|
|
||
| .. autopydantic_model:: PCOptimizationOptions | ||
| :model-show-json: False | ||
|
|
||
| .. autoclass:: PCOptimizationFormat | ||
| :show-inheritance: | ||
| :members: | ||
| :undoc-members: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| ===================== | ||
| Tile map optimization | ||
| ===================== | ||
|
|
||
| The *tile map optimization* job takes one or multiple reality data tile maps as an input and will consolidate them into a single tile map. | ||
|
|
||
| .. contents:: Quick access | ||
| :local: | ||
| :depth: 2 | ||
|
|
||
| Examples | ||
| ======== | ||
|
|
||
| In this example, we create a specification for submitting a tile map optimization job to XYZ format: | ||
|
|
||
| .. literalinclude:: examples/tm_optimization.py | ||
| :language: Python | ||
|
|
||
| Classes | ||
| ======= | ||
|
|
||
| .. currentmodule:: reality_capture.specifications.tile_map_optimization | ||
|
|
||
| .. autopydantic_model:: TileMapOptimizationSpecificationsCreate | ||
|
|
||
| .. autopydantic_model:: TileMapOptimizationSpecifications | ||
|
|
||
| .. autopydantic_model:: TileMapOptimizationInputs | ||
| :model-show-json: False | ||
|
|
||
| .. autopydantic_model:: TileMapOptimizationOptions | ||
| :model-show-json: False | ||
|
|
||
| .. autoclass:: TileMapOptimizationFormat | ||
| :show-inheritance: | ||
| :members: | ||
| :undoc-members: | ||
|
|
||
| .. autoclass:: TileMapImageFormat | ||
| :show-inheritance: | ||
| :members: | ||
| :undoc-members: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| =================== | ||
| Vector optimization | ||
| =================== | ||
|
|
||
| The *vector optimization* job takes one or multiple reality data vectors as an input and will consolidate them into a vector data. | ||
|
|
||
| .. contents:: Quick access | ||
| :local: | ||
| :depth: 2 | ||
|
|
||
| Examples | ||
| ======== | ||
|
|
||
| In this example, we create a specification for submitting a vector optimization job to the Bentley Feature Database: | ||
|
|
||
| .. literalinclude:: examples/vector_optim.py | ||
| :language: Python | ||
|
|
||
| Classes | ||
| ======= | ||
|
|
||
| .. currentmodule:: reality_capture.specifications.vector_optimization | ||
|
|
||
| .. autopydantic_model:: VectorOptimizationSpecificationsCreate | ||
|
|
||
| .. autopydantic_model:: VectorOptimizationSpecifications | ||
|
|
||
| .. autopydantic_model:: VectorOptimizationInputs | ||
| :model-show-json: False | ||
|
|
||
| .. autopydantic_model:: VectorOptimizationOptions | ||
| :model-show-json: False | ||
|
|
||
| .. autoclass:: VectorOptimizationFormat | ||
| :show-inheritance: | ||
| :members: | ||
| :undoc-members: |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.