-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adding possibility to read flat surface container (#3668)
This PR adds a function to the `JsonSurfacesReader` that allows to read in a flat container rather than a Hierarchy map: ```python >>> import acts >>> from acts import examples >>> sOptions = acts.examples.SurfaceJsonOptions() >>> sOptions.inputFile = "some_sensitive_mod.json" >>> sOptions.jsonEntryPath = ["surfaces"] >>> surfaces = acts.examples.rreadSurfaceVectorFromJson(sOptions) >>> print(len(surfaces)) 16668 >>> geoContext = acts.GeometryContext() >>> viewConfig = acts.ViewConfig() >>> acts.examples.writeSurfacesObj(surfaces, geoContext, viewConfig, "some-surfaces.obj") ``` will work with this out of the box.
- Loading branch information
1 parent
f0dfbcd
commit 32f67b3
Showing
3 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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 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 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