<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi,</p>
<p>Nobody faced this situation ? Where the exported objects do no
apply the SetPosition() et SetOrientation() as in the interactive
Window ?</p>
<p>I have a hard to fix this ... Any help is very much welcomed.</p>
<p>Thanks in advance<br>
</p>
<div class="moz-forward-container"><br>
<br>
-------- Message transféré --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Sujet :
</th>
<td>exporting scene to vrml format</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date : </th>
<td>Thu, 16 Feb 2017 14:31:15 +0100</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE"><br>
</th>
<td><br>
</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE"><br>
</th>
<td><br>
</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">: </th>
<td><br>
</td>
</tr>
</tbody>
</table>
<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<p>hello, <br>
<br>
I am currently trying to export a scene using vtkVRMLExporter()
from my vtk application. <br>
My scene is built from a set of geometries which are then
moved/rotated internally to my application (with user input)
using vtkAssembly::SetPosition(...) and
vtkAssembly::SetOrientation(...)<br>
<br>
Unfortunately, the exported scene reports only the initial
position/orientation of my differents objects. Any suggestions
on how to take into accounts those move/orientation in the
exported scene ? Also the view type (surface, wireframe, mesh,
opacity) is not correctly exported. <br>
<br>
thanks in advance for help <br>
Philippe <br>
<br>
<br>
<br>
// my function to export the scene <br>
bool VisualisationVtk::Visualisation::SaveVRML(String^ Filename)
<br>
{ <br>
vtkVRMLExporter *Exporter; <br>
<br>
Exporter= vtkVRMLExporter::New(); <br>
Exporter->SetRenderWindow(Window); <br>
<br>
pin_ptr<const wchar_t> wch =
PtrToStringChars(Filename); <br>
char file[256]; <br>
size_t convertedChars = 0; <br>
size_t sizeInBytes = ((Filename->Length + 1) * 2); <br>
wcstombs_s (&convertedChars,file, sizeInBytes,wch,
sizeInBytes); <br>
Exporter->SetFileName(file); <br>
<br>
draw(); // loops on all objects and hide/view update
surface/mesh view move/rotate upon users requests <br>
<br>
Exporter->Write(); <br>
Exporter->Delete(); <br>
<br>
return true; <br>
} <br>
</p>
<br>
<div class="moz-signature">-- <br>
<title></title>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<style type="text/css" media="screen">
table {
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
}
td {
line-height: 0px;
padding: 0px 0px 0px 0px;
}
p {
font-size: 14px;
font-family: "Trebuchet MS", verdana, arial;
}
h1 {
font-family: "Trebuchet MS", verdana, arial;
font-size: 12px;
font-weight: bold;
font-style: normal;
text-decoration: blink;
color: #0057A4;
}
h2 {
font-size: 12px;
color: black;
text-shadow: #E5881D 0px 0px 5px; /* for browsers without spread support */
text-shadow: #E5881D 0px 0px 5px 5px; /* for browsers with spread support */
}
</style><br>
<br>
<br>
</div>
</div>
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
<tr>
<td style='border:none;padding:0px 15px 0px 8px'>
<a href="https://www.avast.com/antivirus">
<img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" alt="Avast logo" />
</a>
</td>
<td>
<p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
<br><a href="https://www.avast.com/antivirus">www.avast.com</a>
</p>
</td>
</tr>
</table>
<br />
</body>
</html>