<div dir="ltr"><span id="gmail-result_box" class="gmail-" lang="en"><span>Guillen Antonio, thanks for the help.</span><br><span>But how do I get vtkChartXYZ and vtkGlyph3D to show up and spin on the same scene?</span> <span class="gmail-">Or am I generally not doing the right thing?</span></span></div><div class="gmail_extra"><br><div class="gmail_quote">2017-08-15 20:19 GMT+03:00 Guillen Antonio <span dir="ltr"><<a href="mailto:tonio.guillen@gmail.com" target="_blank">tonio.guillen@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Here a small example that i use:<br><br><br> Field<Vector3D> dhField = (Field) this.getDisplayedData();<br> <br> DrillholeMesh dhMesh = dhField.getMesh();<br> double[] curvilinearAbscissae = dhMesh.getCurvilinear();<br> int nbFieldValues = dhField.getValues().length;<br> Drillhole dh = dhField.getDrillhole();<br> @SuppressWarnings("unchecked")<br> FieldDh<Vector3D> field = dhField;<br> if (field == null)<br> return false;<br> vtkPoints points = new vtkPoints();<br> points.SetDataTypeToDouble();<br> double[] pc = new double[3];<br> double[] ps = new double[3];<br> Vector3D[] values = field.getValues();<br> if (values != null) {<br> double sizeMaxField = aValue;<br> vtkArrowSource arrow = new vtkArrowSource();<br> arrow.SetTipRadius(0.1);<br> arrow.SetTipLength(1.);<br> arrow.SetShaftResolution(6);<br> arrow.SetShaftRadius(0.03);*/<br> vtkDoubleArray vector3DArray = new vtkDoubleArray();<br> vector3DArray.<wbr>SetNumberOfComponents(3);<br> vector3DArray.SetName("Vector"<wbr>);<br> for (int i = 0; i < nbFieldValues; i++) {<br> Vector3D fieldValue = values[i];<br> if (fieldValue != null && fieldValue != field.getNoValue()) {<br> Point3D p = dh.getSurvey().getPoint(<wbr>curvilinearAbscissae[i]);<br> ps[0] = p.x;<br> ps[1] = p.y;<br> ps[2] = p.z;<br> points.InsertNextPoint(ps);<br> vector3DArray.<wbr>InsertNextTuple3(fieldValue.<wbr>getX(), fieldValue.getY(), fieldValue.getZ());<br> }<br> }<br> vtkPolyData polyData = new vtkPolyData();<br> polyData.SetPoints(points);<br> polyData.GetPointData().<wbr>SetVectors(vector3DArray);<br> <br><br> vector3DGlyph = new vtkGlyph3D();<br> vector3DGlyph.<wbr>SetVectorModeToUseVector();<br> vector3DGlyph.OrientOn();<br> vector3DGlyph.SetScaleFactor(<wbr>sizeMaxField/2.);<br> vector3DGlyph.<wbr>SetScaleModeToDataScalingOff()<wbr>;<br> vector3DGlyph.<wbr>SetColorModeToColorByScalar();<br><br> vector3DGlyph.<wbr>SetSourceConnection(arrow.<wbr>GetOutputPort());<br> vector3DGlyph.SetInputData(<wbr>polyData);<br> vector3DGlyph.Update();<br><br><br></div>Hope it help you.<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2017-08-15 18:21 GMT+02:00 Виталий Симаков <span dir="ltr"><<a href="mailto:simakov.w@gmail.com" target="_blank">simakov.w@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><span id="m_-963946467561045067m_8718865439033944692gmail-result_box" class="m_-963946467561045067m_8718865439033944692gmail-" lang="en"><span>Hello.</span><br><span>Recently began to study the VTK.</span><br><span>Faced the following problem:</span><br><span class="m_-963946467561045067m_8718865439033944692gmail-">It is necessary to draw vtkPlotLine3D and on it to represent vectors (Presumably vtkArrowSource).</span><br><span class="m_-963946467561045067m_8718865439033944692gmail-">Someone did this?</span> <span>Examples did not help ... = (</span><br><span class="m_-963946467561045067m_8718865439033944692gmail-">Thank you.</span></span></div>
<br></div></div>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FA<wbr>Q</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>