<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Saren,<div class=""><br class=""></div><div class=""> Elaine is right that the STL mesh has exactly the same set of triangles that is being shown in ChimeraX. The faceted appearance of the STL is because that file format does not contain surface normal vectors that allow graphics rendering to smooth the appearance.</div><div class=""><br class=""></div><div class=""> The most common use of STL format is for 3D printing and the the 3D printers don't have enough resolution to see those facets you see in the graphics, so for 3D printing you usually don't need to increase the subdivision of the surface.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Tom</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jun 15, 2021, at 9:04 AM, Saren Tasciyan via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
<div class=""><p class="">Hi Elaine,</p><p class="">Thanks a lot. surface ... gridSpacing did the trick</p><p class=""><img alt="" class="" apple-inline="yes" id="59DF2F43-3222-4778-B213-19479E2F36F6" src="cid:part1.D5ABBACC.F92A1EED@ist.ac.at"></p><p class="">In this case it was about a molecular surface.</p><p class="">Best,</p><p class="">Saren<br class="">
</p>
<div class="moz-cite-prefix">On 15.06.21 17:22, Elaine Meng wrote:<br class="">
</div>
<blockquote type="cite" cite="mid:01504093-2BF7-4F01-8246-AD80D88E9220@cgl.ucsf.edu" class="">
<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" class="">
<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 class="">
Saren Tasciyan<br class="">
<em class="">PhD Student / Sixt Group</em><br class="">
Institute of Science and Technology Austria<br class="">
Am Campus 1<br class="">
3400 Klosterneuburg, Austria</div>
</div>
_______________________________________________<br class="">ChimeraX-users mailing list<br class=""><a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">Manage subscription:<br class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users<br class=""></div></blockquote></div><br class=""></div></body></html>