I have changed the value of “Face” from 2 to 20, the displayed shape
is the same – the cylinder is not round. It it possible to improve
the graphical quality?
I am sorry but there are currently no way to improve the display of the
cylinder object.
The Face variable will not make the cylinder look nicer it is meant to
control the normal of the triangles used when drawing the cylinder.
If the you would like to have more detail on the cylinder the quick fix is
to create a unity sized cylinder in a CAD program and import it as an .stl
file. scaling it to the proper size using the ScaleXYZ property. In this way
you can use the same CAD file of cylinder CAD multiple times.
This is the explanation from the manual:
AnyVar Face
Normal direction specification. Outwards normal is defined by the surface
triangles’ vertex numbering as ’0’ means clockwise, ’1’ means
counter-clockwise, ’-1’ means both sides will be drawn on all object
surfaces. Any other value implies automatic selection. (=2)
I have changed the value of “Face” from 2 to 20, the displayed shape
is the same – the cylinder is not round. It it possible to improve
the graphical quality?
John
[Non-text portions of this message have been removed]
Thanks for the response. It’s a quick fix. I generated the cylinder
mesh using other software and imported into AnyBody as STL. It looks
fine now.
John
— In anyscript@yahoogroups.com, AnyScript Support
<anyscriptsup@…> wrote:
>
> Hi John
>
>
>
> I am sorry but there are currently no way to improve the display of
the
> cylinder object.
>
>
>
> The Face variable will not make the cylinder look nicer it is meant
to
> control the normal of the triangles used when drawing the cylinder.
>
>
>
> If the you would like to have more detail on the cylinder the quick
fix is
> to create a unity sized cylinder in a CAD program and import it as
an .stl
> file. scaling it to the proper size using the ScaleXYZ property. In
this way
> you can use the same CAD file of cylinder CAD multiple times.
>
>
>
> This is the explanation from the manual:
>
>
>
> AnyVar Face
>
> Normal direction specification. Outwards normal is defined by the
surface
> triangles’ vertex numbering as ‘0’ means clockwise, ‘1’ means
> counter-clockwise, ‘-1’ means both sides will be drawn on all object
> surfaces. Any other value implies automatic selection. (=2)
>
>
>
> Best regards
>
> Søren, AnyBody Support
>
>
>
>
>
> _____
>
> From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com]
On Behalf
> Of johnzengwu
> Sent: 27 October 2008 17:16
> To: anyscript@yahoogroups.com
> Subject: [AnyScript] Graphical quality of AnySurf*
>
>
>
> Søren:
>
> I have a simple question.
>
> The graphical quality of the surface created by AnySurf* function
is
> poor and cannot be improved. For example, I created a cylinder
using:
>
> AnySurfCylinder Cylinder_Sample =
> {
> Radius = 0.022;
> Length = 0.10;
> // CapRatio = 0.01;
> AnyDrawParamSurf tool =
> {
> RGB = {0.8, 0.5, 0.5};
> ScaleXYZ = {1, 1, 1};
> Transparency = 0.3;
> Face = 20;
> WireFrameOnOff = Off;
> };
> };
> };
>
> I have changed the value of “Face” from 2 to 20, the displayed
shape
> is the same – the cylinder is not round. It it possible to improve
> the graphical quality?
>
> John
>
>
>
>
>
> [Non-text portions of this message have been removed]
>