PCLVisualizer.addPolygonMesh doesn't show anything - visual-studio-2010

using my code I want to visualize mesh.
I use this code snippet, just after poisson.reconstruct function.
Running it, the viewer shows nothing, and the terminal says that there is no mesh.
Why? Is there an error? Where? How to solve?
Thanks in advance

I think you have to call the spinOnce() method in the loop:
visualization::PCLVisualizer viewer("Simple Cloud Viewer");
viewer.addPolygonMesh(mesh);
while(!viewer.wasStopped()) {
viewer.spinOnce();
}
According to the documentation this method updates the screen.

Related

How to make a grid in threejs like the attached image?

I want to make a interface like the attached image. But i am unable to get started.
Any help would be highly appreciated.
http://i.stack.imgur.com/DsXbx.png
For basic grid (GridHelper) is your friend.

create a simple (and visible!) UI slider in Unity 5

![enter image description here][1]please I need some help, this should apparently be something very simple and basic to do, but maybe I'm missing something.
I'm quite newbie to Unity3d, I had no much problem with creating a somewhat flashy 2.D scene (I mean 2D with different layers in Z level), scripts, etc. But I'm having trouble to create a "UI Slider" object: when I create it, it just shows nothing on screen. How can I make it visible? I just need to create a very simple, plain slider whose value can be controlled at runtime by means of a script.
thanks.
Well.. since you give nothing to go on, I suggest that you take a look at a tutorial for the UI:
https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/using-the-ui-tools
If you have troubles after this tutorial, come back with an example of your problem to make people more willing to sacrifice their time in helping you.
Hope this is somewhat useful
Take a look at the Unity3D docs here.
http://docs.unity3d.com/Manual/script-Slider.html
It should have what you are looking for.

Rotating a UIButton?

I am trying to rotate a UIButton so it looks more like a diamond instead of a square. I have searched a lot on the site and could not find anything that could help me. I am having a lot of trouble with this and need some help. I think it will increase the appeal of my app when it is running. This is a problem I have had for a while and have been struggling with so anything can help me. I don't know if this is a built in feature in Xcode or if I need to do this programmatically.
Any suggestions would be greatly appreciated.
Thanks in advance.
You could simply apply an affine transform to the button. Something like this:
import Darwin
...
myButton.transform = CGAffineTransformMakeRotation(M_PI/2)
However, that will rotate the entire button, including the title. If that's not what you want then it gets more complicated.

Making a bouncing effect using Tweener

I would like to bounce my actor on y-axis for two
Seconds following a button release event.
I don't know how I can do that using Tweener.
Gnome shell 3.4.
Thanks for any help,
I gave up trying that effect. Instead using Tweener (imports.gi.Tweener), I simply set the opacity of the object from 0 to 255 in 'easeQuadEffect'.
GPaste Integration does what you want. Inspecting the code may be informative.
Search for "Tweener" in the gpaste_integration.js file.

Qt: transparent QRubberBand?

I'm trying to draw a QRubberBand on a QGLWidget. For some reason the area of the rubber band is drawn as opaque and I don't see what's behind it. This kinda beats the purpose of the rubber band as a way to select stuff inside it.
I've seen in docs for QStyleOptionRubberBand that there's an 'opaque' member but I have no idea how to access this in the default style or how to change it.
Anybody ever done this?
Are you in Vista/Win7 with Areo on? If so, does it work when you turn it off?
EDIT:
How about Message #6?
"In the meantime I looked it up in the QT source code, and I noticed that the following will solve my problem: myQRubberBand->setWindowFlags(Qt::ToolTip);"
It would be great having any source code ?
But here are how I would attempt to fix the problem :
Subclass QRubberBand
Redefine PaintEvent method
call iniStyleOption to activate style options of your choice
Hope it helps !

Resources