Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NP_TMcode
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Giacomo Mulas
NP_TMcode
Commits
fc1b6eec
Commit
fc1b6eec
authored
2 months ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Fix model_maker inline documentation
parent
25477404
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/scripts/model_maker.py
+6
-4
6 additions, 4 deletions
src/scripts/model_maker.py
with
6 additions
and
4 deletions
src/scripts/model_maker.py
+
6
−
4
View file @
fc1b6eec
...
@@ -31,6 +31,7 @@ import pdb
...
@@ -31,6 +31,7 @@ import pdb
import
random
import
random
import
yaml
import
yaml
## \brief 3D software generation capability flag.
allow_3d
=
True
allow_3d
=
True
try
:
try
:
import
pyvista
as
pv
import
pyvista
as
pv
...
@@ -46,7 +47,7 @@ from sys import argv
...
@@ -46,7 +47,7 @@ from sys import argv
# `main()` is the function that handles the creation of the code configuration.
# `main()` is the function that handles the creation of the code configuration.
# It returns an integer value as exit code, using 0 to signal successful execution.
# It returns an integer value as exit code, using 0 to signal successful execution.
#
#
# \returns result: `int`
Number of detected error-level inconsistencies
.
# \returns result: `int`
Exit code (0 = SUCCESS)
.
def
main
():
def
main
():
result
=
0
result
=
0
config
=
parse_arguments
()
config
=
parse_arguments
()
...
@@ -952,9 +953,10 @@ def write_legacy_sconf(conf):
...
@@ -952,9 +953,10 @@ def write_legacy_sconf(conf):
## \brief Export the model to a set of OBJ files for 3D visualization.
## \brief Export the model to a set of OBJ files for 3D visualization.
#
#
# This function exports the model as a set of OBJ files (one for every
# This function exports the model as a single OBJ file, containing the
# spherical unit, plus a single scene file) to allow for model visualization
# information to visualize the particle with 3D software tools. The model
# with 3D software tools.
# file is associated with a MTL material libray file, used to assign colors
# to spheres of different type.
#
#
# \param scatterer: `dict` Scatterer configuration dictionary (gets modified)
# \param scatterer: `dict` Scatterer configuration dictionary (gets modified)
# \param geometry: `dict` Geometry configuration dictionary (gets modified)
# \param geometry: `dict` Geometry configuration dictionary (gets modified)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment