Giter Club home page Giter Club logo

Comments (14)

OhmPuchiss avatar OhmPuchiss commented on June 21, 2024 1

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.

marcomusy avatar marcomusy commented on June 21, 2024

you right-click and drag the mouse.

from vedo.

OhmPuchiss avatar OhmPuchiss commented on June 21, 2024

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 ?
image

from vedo.

marcomusy avatar marcomusy commented on June 21, 2024

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.

OhmPuchiss avatar OhmPuchiss commented on June 21, 2024

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 ?
image
image

from vedo.

marcomusy avatar marcomusy commented on June 21, 2024

Yes you can create an Assembly:

assem = myline + myobj
show(assem)

from vedo.

marcomusy avatar marcomusy commented on June 21, 2024

Did you manage to do it?

from vedo.

OhmPuchiss avatar OhmPuchiss commented on June 21, 2024

Since vedo is made on VTK, Can you create a python code to make this function ?
image

from vedo.

OhmPuchiss avatar OhmPuchiss commented on June 21, 2024

I am not good at coding yet and I believe you could help me to create something like this in vedo.

from vedo.

marcomusy avatar marcomusy commented on June 21, 2024

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.

OhmPuchiss avatar OhmPuchiss commented on June 21, 2024

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.

OhmPuchiss avatar OhmPuchiss commented on June 21, 2024

*old

from vedo.

marcomusy avatar marcomusy commented on June 21, 2024

No, mesh.vertices will hold the new coordinates after .apply_transform(T)

from vedo.

OhmPuchiss avatar OhmPuchiss commented on June 21, 2024

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)

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.