question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GUI transform tool

See original GitHub issue

Hello macro,

I am wondering if vedo is able to make a GUI transform tool like Meshmixer does (see example below), which we can use the arrows or curves to translate or rotate the object (e.g., a mesh). image

Another silly question is do you know how to recover the mesh position after rotate function? I can get the original position by mesh.clone().points() before rotating, but I don’t know how to properly/easily to assign the numpy array (i.e., the output of points() function) back to the rotated mesh.

BTW, Thanks for working on vedo. It helps me finish many things in my project! It’s really amazing.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Tai-Hsiencommented, Feb 4, 2021

I will play with them! Many thanks!

1reaction
marcomusycommented, Feb 4, 2021

The second T in the above example gives you the desired result. If you want to have it interactively you need to use plotter.addCallback() to have a function which is called while the window is active. E.g

from vedo import *

c1 = Cube()
c2 = c1.clone().c('violet').alpha(0.5) # copy of c1
v = vector(0.2,1,0)
p = vector(1,0,0)  # axis passes through this point
c2.rotate(90, axis=v, point=p)

def f(evt):
    if not evt.actor: return
    printc(c2.getTransform(), c=evt.actor.color())

plt = Plotter()
plt.addCallback('LeftButtonPress', f)
plt.show(c1, c2, axes=1)
Read more comments on GitHub >

github_iconTop Results From Across the Web

system.gui.transform - Ignition User Manual 8.0
This function is used in Python Scripting. Description. Sets a component's position and size at runtime. Additional arguments for the duration, ...
Read more >
Transform Button | GUI Tools - Unity Asset Store
Use the Transform Button from Magmaw's Cool Stuff on your next project. Find this GUI tool & more on the Unity Asset Store....
Read more >
Transformation tool specification - GIMP GUI Redesign
This is the specification for the unified transformation tool. This tool has been designed to achieve some very specific goals:.
Read more >
Improving "Clipping" in transformation tools: clipping target + ...
Improving "Clipping" in transformation tools: clipping target + GUI rethinking. Operating System: all. Description of the feature. The "Clipping ...
Read more >
MR::GUI::MRView::Tool::Transform Class Reference - MRtrix
MR::GUI::MRView::Tool::Transform Class Reference. #include "gui/mrview/tool/transform.h". Inheritance diagram for MR::GUI::MRView::Tool::Transform: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found