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
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 sees-0.0.8.tar.gz
.
File metadata
- Download URL: sees-0.0.8.tar.gz
- Upload date:
- Size: 35.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9518fb8c97d9b3e3b18a55f2736b2de3c9013901c78d95e697786a9a0249000 |
|
MD5 | 946caaab29ce0fd01ae7cdd8b39cc279 |
|
BLAKE2b-256 | fbc6e153f4a507e83dd326e8e919705061abfcd80cefc3c029ec5f513165f6d1 |
Provenance
File details
Details for the file sees-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: sees-0.0.8-py3-none-any.whl
- Upload date:
- Size: 40.3 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 | 573b15e0935490f271b5bd66f8fe993811fb295a6a75b280a20c3603cba9bfef |
|
MD5 | 161af26d056352e62304f758e4d519bd |
|
BLAKE2b-256 | c0c536531f3f6d92a3f9500eb375579b99d3f98db354f5ca0870a1ec390fb326 |