Comments (14)
I figure it out. Just pressing button a. I have a second question how do we scale an object (i.e. similar to blender by pressing s and moving left or right).
from vedo.
you right-click and drag the mouse.
from vedo.
Dear Marco,
Is there anyway we can access the axis of the object and its orientation ?
I want to do thing similar to this post. However, I would like to define my own transformation matrix, button and much more. Therefore, is there anyway can I get the information about orientation and axis of the object ?
from vedo.
Sure you can access it by
myobj.transform
and
myobj.transform.matrix
To apply a trasformation to a specific object you can use
myobj.apply_transform(...)
from vedo.
Hey Marco,
Is there any way to make the line rotate or move together with the object (the purple one) when using mouse to move or rotate the object ?
from vedo.
Yes you can create an Assembly:
assem = myline + myobj
show(assem)
from vedo.
Did you manage to do it?
from vedo.
Since vedo is made on VTK, Can you create a python code to make this function ?
from vedo.
I am not good at coding yet and I believe you could help me to create something like this in vedo.
from vedo.
You can create a picture-in-picture rendering with any sort of 3d object or axes.
This is a good example to start with
https://github.com/marcomusy/vedo/blob/master/examples/other/inset.py
https://github.com/marcomusy/vedo/tree/master/examples/other/icon.py
https://github.com/marcomusy/vedo/tree/master/examples/volumetric/slicer1.py
from vedo.
thank you for your assistance. I have one question. When we apply the transformation, the mesh.vertices still have the ols data from the dataset. How do we get the new coordinate information after transformation ?.
from vedo.
*old
from vedo.
No, mesh.vertices
will hold the new coordinates after .apply_transform(T)
from vedo.
I think I combine the mesh and other mesh into assembly and when I apply transformation matrix. The mesh.vertices inside the assembly data still hold the old data.
from vedo.
Related Issues (20)
- How to open two seperate windows in vedo ? HOT 4
- color of tube cap HOT 4
- How to show import window in multiple renderer ? HOT 3
- Boolean operations issue HOT 2
- how to remove vtk log HOT 1
- How to quantify the volume of a Volume HOT 6
- Memory Leak in Image(img), Axes function ? HOT 6
- Adjacent connections and distance between adjacent point clouds HOT 4
- AttributeError: partially initialized module 'vedo' has no attribute 'Cone' (most likely due to a circular import) HOT 1
- Axisymmetric mesh with extrude HOT 4
- Is vedo thread-safe? HOT 1
- Want to use vedo to display and reconstruct 3D CT images HOT 4
- Data type discrepancies between numpy and VTK HOT 9
- About the button in vedo. HOT 2
- How to set a camera with given intrinsic and extrinsic parameters HOT 1
- How to add the slider? HOT 1
- How to load multiple Volumes in 1 3D interactive plane HOT 4
- Segmentation and Visualization of CT Scan Structures Based on Density in Vedo HOT 4
- Overlap on inside of Tube HOT 1
- Mesh cut with cut_with_box results in non water tight mesh HOT 2
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 vedo.