A modern OpenSees renderer
Project description
sees
A modern OpenSees renderer
sees
is a finite element rendering library that leverages modern
web technologies to produce sharable, efficient, and beautiful renderings.
Documentation is currently under development.
Features
-
Extruded deformed shape
-
Detailed section rendering
-
A wide selection of rendering backends and output file types, including optimized 3D web formats like
.glb
. -
Correctly render models that treat both
y
orz
as the vertical coordinate.
Command Line Interface
To create a rendering, execute the following command from the anaconda prompt (after activating the appropriate environment):
python -m sees model.json -o model.html
where model.json
is a JSON file generate from executing the following OpenSees command:
print -JSON model.json
If you omit the -o <file.html>
portion, it will plot immediately in a new
window. You can also use a .png
extension to save a static image file, as
opposed to the interactive html.
Note Printing depends on the JSON output of a model. Several materials and elements in the OpenSeesPy and upstream OpenSees implementations do not correctly print to JSON. For the most reliable results, use the
opensees
package.
By default, the rendering treats the $y$ coordinate as vertical.
In order to manually control this behavior, just pass the option
--vert 3
to render model $z$ vertically, or --vert 2
to render model $y$ vertically.
If the opensees
package is installed,
you can directly render a Tcl script without first printing to JSON,
by just passing a Tcl script instead of the JSON file:
python -m sees model.tcl -o model.html
To plot an elevation (elev
) plan (plan
) or section (sect
) view, run:
python -m sees model.json --view elev
and add -o <file.extension>
as appropriate.
To see the help page run
python -m sees --help
See also
For OpenSees rendering
Other
Support
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file semm-0.0.0.tar.gz
.
File metadata
- Download URL: semm-0.0.0.tar.gz
- Upload date:
- Size: 41.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ec5e4c3a39cd45f95abf391130c2c5f08057ba43471a20febbb20950b8f62d0 |
|
MD5 | 0001f4c8eb82e138e2c3f744db1ae6b5 |
|
BLAKE2b-256 | c82cdf91f74a5cd66b199168befe521b04ad87aa2bf1c558e0df50ac0d47bb67 |
File details
Details for the file semm-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: semm-0.0.0-py3-none-any.whl
- Upload date:
- Size: 46.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90c923c9e49127bb1108ab83da3048717599f03a479a0e8f23936996a5365cbb |
|
MD5 | 8436136a2f9737a73b0d671ff5d96b62 |
|
BLAKE2b-256 | f3d68d19940e407fc8058b9e95f0145a1f0899b3e1d3b639f2033003bb948446 |