Code Monkey home page Code Monkey logo

dvis's Introduction

DVIS: 3D Visualizations made easy

Visualize your data with just one line of code

Python -> Browser

๐Ÿ’ป Usage

from dvis import dvis

dvis("mesh.obj") # load file
dvis(point_cloud, vs=0.03) # point cloud with specific voxel size
dvis(bboxes,'bbox', c=3, name='my_boxes') # show colored boxes 
dvis(np.array([0,0,0,1,2,3]), 'vec') # vector from origin to (1,2,3)
dvis(transform, 'transform'), # display transformation

Check out more examples in ./examples

python examples/meshes.py
python examples/point_clouds.py
python examples/...

๐Ÿš€ Getting started

Install the dvis package

pip install .

Start the web server

cd server
python server.py

Verify you can open http://localhost:5001/ and see something like this:

Try out the client

import numpy as np
from dvis import dvis
dvis(np.random.rand(1000,6), s=0.03)
# sends randomly colored 1000x3 point cloud to the server

Verify you can see a colored point cloud

๐Ÿ“– Documentation

For an overview of available commands check out the documentation

Shotcuts

Shortcut Description
Editor
w Translate
e Rotate
r Scale
z Undo
f Focus
DVIS
v Show/hide selected object
1-5 Toggle layer 1-5
0 Toggle all layers
Shift + 0-5 Show layer 0-5 add.
g Show/hide grid & axes helper
n Next keyframe
b Previous keyframe
. Next frame
, Previous frame
t Switch camera
[ Download screenshot

dvis's People

Contributors

sirwyver avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.