<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Elaine,</p>
    <p>Thanks a lot. surface ... gridSpacing did the trick</p>
    <p><img src="cid:part1.D5ABBACC.F92A1EED@ist.ac.at" alt=""></p>
    <p>In this case it was about a molecular surface.</p>
    <p>Best,</p>
    <p>Saren<br>
    </p>
    <div class="moz-cite-prefix">On 15.06.21 17:22, Elaine Meng wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:01504093-2BF7-4F01-8246-AD80D88E9220@cgl.ucsf.edu">
      <pre class="moz-quote-pre" wrap="">Hi Saren,
As far as I know the STL has the same mesh resolution (same triangulation) as the surface had in ChimeraX, although the surface in ChimeraX may look smoother because of the surface normals and how the lighting is done.

How to use smaller triangles in the surface in ChimeraX depends on the type of surface:

(A) If it is a molecular surface you can control it with the "gridSpacing" option of the "surface" command.
<a class="moz-txt-link-rfc2396E" href="https://rbvi.ucsf.edu/chimerax/docs/user/commands/surface.html"><https://rbvi.ucsf.edu/chimerax/docs/user/commands/surface.html></a>

(B) If it is a volume surface (e.g. density map isosurface) there are several options of the "volume" command having to do with surface subdivision and smoothing, and whether square mesh is shown, see:
<a class="moz-txt-link-rfc2396E" href="https://rbvi.ucsf.edu/chimerax/docs/user/commands/volume.html#dispsurf"><https://rbvi.ucsf.edu/chimerax/docs/user/commands/volume.html#dispsurf></a>
You would also want to use "step 1" for the full resolution of the map data:
<a class="moz-txt-link-rfc2396E" href="https://rbvi.ucsf.edu/chimerax/docs/user/commands/volume.html#sampling"><https://rbvi.ucsf.edu/chimerax/docs/user/commands/volume.html#sampling></a>

I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.                       
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco


</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">On Jun 15, 2021, at 3:48 AM, Saren Tasciyan via ChimeraX-users <a class="moz-txt-link-rfc2396E" href="mailto:chimerax-users@cgl.ucsf.edu"><chimerax-users@cgl.ucsf.edu></a> wrote:

Hi,

I am trying to generate STL files out of protein models. Often the problem is that the mesh doesn't as smooth as the models (see pics below). I wonder if this is an artifact of rendering in ChimeraX or the mesh is actually hard coded to have certain resolution, which makes it look like this? I tried to find out why and ended up in custom_x3d function but didn't notice anything. Post-export smoothing is an option but I wonder, if that's the optimal approach?

Perhaps, smoothing can create collisions between 2 STL models, where a higher resolution export may avoid this.

Best,

Saren

<ffmmfhbpapbfadmd.png>

<bfamkfhfkccijeli.png>

-- 

Saren Tasciyan
PhD Student / Sixt Group
Institute of Science and Technology Austria
Am Campus 1
3400 Klosterneuburg, Austria
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
</pre>
    </blockquote>
    <div class="moz-signature">-- <br>
      Saren Tasciyan<br>
      <em>PhD Student / Sixt Group</em><br>
      Institute of Science and Technology Austria<br>
      Am Campus 1<br>
      3400 Klosterneuburg, Austria</div>
  </body>
</html>