A 3D visualisation tool for simulations
Project description
Vivid
We present VIVID, an innovative method for research using 3D technology.
Explanation
Vivid uses an implementation of Voronoi algorithm for a 3d space made by Dr. Elad Stiennberg. The package takes simulated data as input and produces an interactive 3D model that is compatible with the 3D industry.
VIVID was tested in our cosmology research group by producing models from simulations for researchers, supporting new scientific insights about the evolution of galaxies and structures of the Universe.
The code is written in C++ and wrapped in python.
Vivid is currently in the last stages of development, including an installer and the finished wrapper. Soon you will be able to simply install Vivid using anaconda and produce a model using a single function or a few lines of code for more control.
also see https://naftalide.wixsite.com/vivid to view examples of output models.
Getting started
Downloed the prerequirments
pip install --upgrade pip
pip install --upgrade setuptools
install the package
pip install vivid3d
Creating your first model
Code Example
import vivid_py as vivid
import numpy as np
surf = vivid.Surface(points, mask, quan)
surf.create_surface()
mesh = surf.to_mesh("This is mt first model", .9)
mesh.laplacian_smooth(10, 0.7, 0)
mesh.export_to_obj(path + "/FirstModel");
The mandatory inputs to produce a model are as follows:
-
ndArray 3*n float : ModelPoints - holds X Y Z values for data.
-
ndArray n boolean : Mask - mask values for ModelPoints. Output model surface is defined as the middle between True and False points.
-
string : OutputFile - name and directory for the output file.
optinal arguments:
-
Label - float, label for the created surface. defult argument = "Vivid_3D_model"
-
Quan - n float ndArray, Defines color per point. default argument = ndArray.ones().
-
Vmin - float, minimum value for color map. default argument Quan.min_argument().
-
Vmax - float, maximum value for color map. default argument Quan.max_argument().
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 vivid3d-0.2.0.tar.gz
.
File metadata
- Download URL: vivid3d-0.2.0.tar.gz
- Upload date:
- Size: 8.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbd390d6eb0fe2bdbb5a18aaae308d5492721e5dec4fc3937b55470f9fcbdc8b |
|
MD5 | eb876e980f7b71e871bee015bd43d875 |
|
BLAKE2b-256 | 89d55f239b425f4f4b654780c34ff85a3c28e5440e8e6bcb07aacc9ce436af61 |
File details
Details for the file vivid3d-0.2.0-py3.9-linux-x86_64.egg
.
File metadata
- Download URL: vivid3d-0.2.0-py3.9-linux-x86_64.egg
- Upload date:
- Size: 14.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a52f4f7c1bcc57d1573c7878d85f6d6b36094a9f30cfb2354bfb24a5d04908a7 |
|
MD5 | 61b9fe749c5421a1a25307de1de390fd |
|
BLAKE2b-256 | 2bcd91cab819e2140782e0c369069ad7727518071233911dde07e7056b886f06 |