Skip to main content

Visualizer-3D

Tool for three-dimensional animations of geometries like FE meshes.

gui

Features

This repository implements a OpenGL-based gui for three-dimensional animations of geometries like FE meshes. It can be used to visualize results, e.g. from transient simulations or to inspect the geometry itself. Moreover, it can be used to export the animations for presentations or publications.

Installation

You can either clone the repository and install the package locally or install it directly from PyPI.

PyPI

pip install visualizer-3d

Local

Clone this repository and install it to your local environment as package using pip:

git clone git@github.com:jkneifl/Visualizer.git
cd Visualizer
pip install -e .

Usage

The base class Visualizer serves as tool for the visualization with its main method animate that can be used to create and export animations of geometries.

from visualizer import Visualizer

coordinates = ...
faces = ...
colors = ...
# create a visualizer object
visualizer = Visualizer()
visualizer.animate(
    coordinates=coordinates,
)

It can animate point clouds, or meshes if the corresponding faces are provided. For a detailed description of the parameters, see the docstring of the animate method.

You can also visualize multiple objects with different colors (specified by rgb values for every coordinate, by a string, or by error_values over an color map) and e.g. as points

random_colors = np.random.rand(*coordinates.shape[0:2])
visualizer.animate([coordinates, coordinates, coordinates],
            faces=[None, faces, faces],
            color=["blue", colors, random_colors],
            shift=True,
            camera_distance=1000,
            )

multiple

In the examples folder, you can find an example script with according data on how to use the Visualizer class.

You can also export the animations as gif or mp4 files. An example is shown below:

arm

Metadata

Release files for visualizer-3d 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for visualizer-3d 0.3.4
File Size Uploaded
visualizer_3d-0.3.4.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for visualizer-3d 0.3.4
File Interpreter ABI Platform
visualizer_3d-0.3.4-py3-none-any.whl Python 3 none any Details

Total release size: 25.8 kB

Release files / visualizer_3d-0.3.4.tar.gz

Download URL visualizer_3d-0.3.4.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1c71f92a73593617d10b7404438cbc852cc96fd2161e90fe7f5ab7a49bb75cc2
BLAKE2b-256 checksum
How to use checksums
ab148ab728d870627c03b8203be111f4e8230ae90f8796745ab1d94a04c7254d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.20

Release files / visualizer_3d-0.3.4-py3-none-any.whl

Download URL visualizer_3d-0.3.4-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db8981aaa1a98b0cfa80adc51e47deadb5329b1388692a8a2b1653c9e0e5b01c
BLAKE2b-256 checksum
How to use checksums
61d46f5c728d42440e8787b00e16d169db3ce5e38346e31be1122010e7a0212d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.20

Release history Release notifications | RSS feed

This release

0.3.4 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page