Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K3D support #78

Open
wants to merge 63 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
3b92ab8
Comment fileno as it doesnt work with jupiter
apapaion Jul 13, 2018
6d34645
Adda control if fileno is used. It causes error with Juputer Unsuppor…
apapaion Feb 6, 2019
1505e03
The accepted version of menpo include 0.9
May 23, 2019
03bc209
Syncronize with menpo/menpo3D. Add moderngl
apapaion Nov 14, 2019
2d99764
Add scikit-sparse dependency at setup. Needed for faster registration
apapaion Nov 15, 2019
32aff71
Merge remote-tracking branch 'upstream/master'
apapaion Jan 17, 2020
dbb8445
Add itkwidgets option(inline) for view for TriMesh and PointCloud
Sep 8, 2020
f0dec19
Add K3d widgets for PointCloud, TriMesh and TexturedTriMesh
Sep 10, 2020
628c16f
Add k3d dependency
Sep 11, 2020
d318f16
Add examples folders with the first example for the K3dWidgets
Sep 11, 2020
2bd57fc
Add Landmark Inline Viewer
Sep 11, 2020
badf6d6
- Add K3d inline viewer in LandmarkerViewer LabelledPointUndirectedGr…
Sep 14, 2020
ac17cd0
Add view method for 3D Shape Model
Sep 16, 2020
1dd9f0c
Update Introduction notebook, move outside of build package
Sep 16, 2020
ec200df
Update Introduction K3d. New paths for loading data
Sep 16, 2020
98a371f
Update Introduction K3d. New paths for loading data
Sep 16, 2020
d3767c2
Add a reduced 3DMM in data folder
Sep 16, 2020
9237de4
Remove menpowidgets dependency. However, it is needed to install menp…
Oct 5, 2020
7a399df
Add dict_figures, list_figures, clear_figures in k3dwidgets
Oct 5, 2020
a82de41
Debugging of some code in viewk3dwidgets;
Oct 5, 2020
57ad92b
Debugging in viewk3dwidgets
Oct 5, 2020
8a5d73e
Remove dependency on mayavi. If someone wants to use it, she should i…
Oct 6, 2020
19d651d
Add heatmap method as a k3dwidget. Move definition of heatmap using m…
Oct 7, 2020
2f5fc44
Add list_figures, dict_figures, clear_figure in __init__, so they can…
Oct 8, 2020
f987088
Update 0_Introduction_to_K3d_Widgets notebook with heatmap example an…
Oct 8, 2020
d7e6d2d
Initialize spirals module. Add adj_trigs method
Oct 8, 2020
b411095
Remove viewitkwidgets
Oct 8, 2020
a6633db
Add VectorInlineViewer3d. Move the widget check to the abstract classs
Oct 9, 2020
73186f5
Add K3dGraphViewer and K3dNormalViewer class. Add numbering at landm…
Oct 11, 2020
5d07cc9
Add graph viewer, normals viewer and numbering examples
Oct 11, 2020
be91bc6
Checking and creation of widg_to_draw is happening in K3dRenderer for…
Oct 12, 2020
26437dc
One more check was added in order to plot in the same figure. All poi…
Oct 12, 2020
6fa44bc
Add ColouredTriMeshInlineViewer3d. TextureTriMesh can be rendered now…
Oct 12, 2020
cb67ce8
Add one more check for plotting an inline figure. If new_figure is Fa…
Oct 13, 2020
fbaa42e
Update Introduction with more examples for failure
Oct 13, 2020
8498462
decimate_mesh function added in vtkutils.py
Oct 13, 2020
5e7fe2f
Add landmark support in K3dwidgetsColouredTriMeshViewer3d. List of se…
Oct 16, 2020
55e1c14
Update 0_Introduction_to_K3d_Widgets
Nov 18, 2020
484cab4
Menpo requirement is now greater or equal to 0.9.0 in setup.py
Nov 18, 2020
25ed92e
Update README.md
Nov 20, 2020
8a6903f
Update 0_Introduction_to_K3d_Widgets.ipynb
Nov 20, 2020
d4da90d
Camera_auto_fit is false and the new camera posiition is defined by t…
Nov 25, 2020
53667bb
mesh_type argument in view method for trimesh is enabled in K3dwidget…
Nov 26, 2020
7beda9a
Add K3dwidgetIdentity class
Nov 27, 2020
f19938b
Update example 0_Introduction_to_K3d_Widgets
Dec 1, 2020
959b58c
K3dwidgetsPCAModelViewer3d supports PointClouds as well. Address issu…
Dec 16, 2020
29a7ae1
Remove commented deprecated commands
Dec 16, 2020
146710f
Add MayaviHeatmapViewer3d in import list in base.py
Jan 17, 2021
414b0e0
Fix error in import Heatmap3d in visualize/__init__.py
Jan 17, 2021
612af7c
Fix mayavi plotting for landmarks.
Jan 20, 2021
47875fd
Changes in instal_requires in setup.py. Added more packages for windows
Jan 20, 2021
2ca4ddf
Changes in viewk3dwidgets: rgbint and K3dwidgetsPointGraphViewer3d
Jan 28, 2021
050d38e
Merge with original menpo3d
Jan 29, 2021
46115ac
Remove dependency on menpowidgets package
Jan 29, 2021
d514b87
Merge from original menpo3d.
Feb 1, 2021
050adbb
Add PointCloud with colours example in 0_Introduction_to_K3d_Widgets
Feb 3, 2021
f097cbe
Add function generate_transform_matrices in spirals/base.py
Feb 15, 2021
bd64573
Fix default value for colours argument in K3dwidgetsPointGraphViewer3d
Feb 25, 2021
6c4bd75
Various changes to fix code in viewk3dwidgets
Feb 25, 2021
9ad80a5
Removing and tidying parameters for view_3d inline methods
Feb 26, 2021
7129245
Remove of 3DMM
Feb 26, 2021
f6f59f2
Merge branch 'master' of ssh://gitlab-uk.rnd.huawei.com:2222/london_c…
Feb 26, 2021
09aaeb3
Merge remote-tracking branch 'originmenpo/master' into master
apapaion Mar 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@ menpo3d adds support for viewing 3D objects through
[Mayavi](http://code.enthought.com/projects/mayavi/), which is based on VTK.
One of the main reasons menpo3d is a seperate project to the menpo core
library is to isolate the more complex dependencies that this brings to the
project. 3D visualization is not yet supported in the browser, so we rely on
platform-specific viewing mechanisms like QT or WX.
project. ~~3D visualization is not yet supported in the browser, so we rely on
platform-specific viewing mechanisms like QT or WX.~~ In addition, menpo3d
supports 3D visualization in the browser using [K3D Jupyter](https://github.com/K3D-tools/K3D-jupyter) library which is a
Jupyter notebook extension for 3D visualization.

In order to view 3D items you will need to first use the `%matplotlib qt`


In order to view 3D items through mayavi you will need to first use the `%matplotlib qt`
IPython magic command to set up QT for rendering (you do this instead of
`%matplotlib inline` which is what is needed for rendering directly
in Jupyter/Ipython notebooks). As a complete example, to view a
Expand All @@ -50,3 +54,12 @@ mesh = menpo3d.io.import_builtin_asset('james.obj')
%matplotlib qt
mesh.view()
```
In the case of K3D Jupyter visualization to view a mesh in Jupyter cell you
would run something like:
```python
import menpo3d
mesh = menpo3d.io.import_builtin_asset('james.obj')
```
```python
mesh.view(inline=True)
```
Loading