PK_SESSION_set_mesh_angle   

PK_ERROR_code_t PK_SESSION_set_mesh_angle
(
--- received arguments ---
double          mesh_angle   --- required mesh angle precision
)


This function sets the session mesh angle.


Specific Errors:
    PK_ERROR_bad_angle      'mesh_angle' less than 0 or greater than pi (MILD)


If a mesh does not have stored normals, the session 'mesh_angle' is used to
partition the ordered ring of mfacets around an mvertex into smoothly connected
sets.  If consecutive mfacets in this ring have an angle between their normals
larger than the session 'mesh_angle' there is a crease between the mfacets.

If there are no creases or a single crease at an mvertex all of the mfins at
that mvertex will share the same mvertex normal.  Otherwise, for each set of
consecutive mfacets between pairs of creases there will be an mvertex normal.
All of the mfins in the mfacets between a pair of creases at the mvertex will
share the same mvertex normal.

If a mesh does have stored normals, the session 'mesh_angle' has no effect on
the normals used by Parasolid.

Setting the 'mesh_angle' to pi will result in each mvertex whose normal is
calculated having a unique normal, i.e. all fins at an mvertex will share the
same mvertex normal.

Setting the 'mesh_angle' to 0 will result in each mfin for which the mvertex
normal is calculated having an mvertex normal equal to the mfin's mfacet
normal.

See here for more details.