Hi, all<div>I've been struggled with the problem for quite a while, still can't find any clue for solve it. :.(</div><div>I have a unstructred grid displayed in 3D</div><div>The issue is that a display coordinate point(x,y, 0) transfered to world coordinate incorrectly. The wield thing is that while x coordinate is converted properly, while Y coordinate is not. </div>
<div><br></div><div>Following is part of function code.</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>VTK_DECLARE(vtkRenderer, ren);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>ren = GetRenderer();</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>//clicked point in pos</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>ren->SetDisplayPoint(pos.x(), pos.y(), 0.0);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>qDebug()<<"Display:"<<pos.x()<<" "<<pos.y()<<" 0.0";</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>ren->DisplayToWorld();</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>double pt[4];</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>ren->GetWorldPoint(pt);</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>qDebug()<<"World:"<<pt[0]<<" "<<pt[1]<<" "<<pt[2]<<" "<<pt[3];</div>
</div><div><br></div><div><br></div><div>I am using QVTKWidget, and display coordinate origin is on the top-left of the QVTKWidget.</div><div><br></div><div>If any valueable info on this issue is provided, I would greatly appreciate
</div><div><br></div><div><br></div><div>Thanks,</div><div>feng</div>