Giter Club home page Giter Club logo

Comments (8)

NaGenhao avatar NaGenhao commented on May 24, 2024 1

OK, intresting.

I'm going to implement keyboard control instead of "Scrolling", like "↑, ↓, ←, →".

from vedo.

marcomusy avatar marcomusy commented on May 24, 2024

Hi, thanks, can you describe in what way it looks incorrect or post a snapshot?

from vedo.

LogWell avatar LogWell commented on May 24, 2024

data

from vtkplotter import *
s = load('BWom0317-HD2-O02P01-S.obj', c="white")
s.texture('BWom0317-HD2-O02P01-S-BWom0317-HD2-O02P01-D.jpg')
s.show()

from vedo.

marcomusy avatar marcomusy commented on May 24, 2024

Hi, I just committed a fix for the texturing, try:

git clone https://github.com/marcomusy/vtkplotter.git
cd vtkplotter
pip install .

then

from vtkplotter import load

q = load('BWom0317-HD2-O02P01-S.obj')
q.texture('BWom0317-HD2-O02P01-S-BWom0317-HD2-O02P01-D.jpg')
q.lighting('glossy')

q.show(bg='w')

Screenshot from 2019-10-02 18-56-37

to browse a sequence of meshes you can do it with command line:
vtkplotter -s mymeshes*.obj
or
vtkplotter -n mymeshes*.obj # each in a subwindow

from vedo.

NaGenhao avatar NaGenhao commented on May 24, 2024

^_^

If meshes are located in different folders, I can gather them into a list. And what should I do to make it as convenient as switching back and forth under the same folder like vtkplotter -s mymeshes*.obj?

from vedo.

marcomusy avatar marcomusy commented on May 24, 2024

sorry, i'm not sure I understand the question... what you can do is:
vtkplotter -s folder1/mymeshes*.obj folder2/othermeshes*.vtk

from vedo.

NaGenhao avatar NaGenhao commented on May 24, 2024

It's when there are too many files and they're scattered.

path_objs = ["/F/p1/a1/00.obj", 
             "/F/p1/a1/01.obj", 
             ...,
             "/F/p1/a2/00.obj", 
             "/F/p1/a2/01.obj",
             ...,
             ...,
             "/F/p2/a1/00.obj", 
             "/F/p2/a1/01.obj",
             ...,
             "/F/p2/a2/00.obj",
             ...]

In fact, it is just person(n) + action(m) + frame(i).

In python, I can use

st = ' '.join(path_objs)
os.system('vtkplotter -s ' + st)

Is there any other convenient way to implement? Although this is very intuitive.HAHA~

from vedo.

marcomusy avatar marcomusy commented on May 24, 2024

Oh I see.. you can do it programmatically but you will need to write a custom slider function :)
See this example.

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.