Comments (3)
Can you upload the stl and texture? This would help me in debugging why the texture isn't plotting.
As for the camera and plotting code, you can use vtki to streamline the plotting:
import vtki
texture = vtki.load_texture(img_path)
obj = vtki.read(stl_path)
obj.texture_map_to_plane(inplace=True)
# create a plotter object to handle visualization
plotter = vtki.Plotter()
plotter.add_mesh(obj)
# grab the camera object
camera = plotter.camera # vtkRenderingOpenGL2Python.vtkOpenGLCamera object
# your camera code follows
plotter.show()
from pyvista.
My problem is solved. Thanks.
from pyvista.
FYI: this is a cross post from https://discourse.vtk.org/t/python-vtk-can-we-get-the-mesh-rendered-from-the-colorized-point-cloud/200/7
from pyvista.
Related Issues (20)
- Add file and instance metadata to documentation for meshes in `pyvista.examples`
- transparent_background=True in screenshot leads to incorrect image when there is transparency in scene HOT 1
- 'pyvista-plot' directive for embedded-interactive viewers doesn't work for MultiBlock Objects HOT 3
- 我在使用 pyvista.get_reader读取我自己的dem文件时 程序异常退出
- How to add chinese character in my project?
- Jupyter kernel crashing when loading large files
- `download_osmnx_graph` produces a deprecation warning for the `shapely` package HOT 1
- Plotting the `download_parched_canal_4k` dataset shows the texture as a red square
- renderer.bounds iterate over a list of actors
- Tag PolyData faces HOT 4
- Interactive plot cannot be shown in Jupyter HOT 3
- axes_range is reset by simultaneous use of all_edges=True HOT 1
- Interactions with Pyvista.Plotter buttons
- Allow fine grained control of ‘’’add_mesh_clip_plane’’’ bounding cube color, clip plane color
- Docs build time has doubled recently
- Allow docs preview to be generated even if docs build fails
- `GeoVista` integration tests are failing HOT 2
- how to render label faster
- Plotter does not render after Pandas.read_excel() is called in a Jupyter notebook HOT 16
- AMReX/BoxLib Grid Reader HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyvista.