- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Sphere parameter range and re-orienti ng pole of sphere
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-17-2011 04:46 PM
Hi,
I have two problems. First, for some partial sphere faces (see attachment below) the uv parameter range that I get from "sg_get_face_par_box" corresponds to a full sphere. I attached the CAD model that exhibits this problem.
Another question is, is there a way to re-orient the pole of a sphere to a certain direction and will also re-orient the uv parameter according to the pole direction? It looks like the pole is always oriented towards the z-axis. Thank you.
Regards,
Raymond
Re: Sphere parameter range and re-orienti ng pole of sphere
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-19-2011 11:49 AM
castillor wrote:
I have two problems. First, for some partial sphere faces (see attachment below) the uv parameter range that I get from "sg_get_face_par_box" corresponds to a full sphere. I attached the CAD model that exhibits this problem.
From sg_get_face_par_box description:
logical sg_get_face_par_box ( FACE * this_face, SPApar_box & face_range )
This function determines a parameter space SPApar_box encompassing the given face. It returns TRUE if the calculation was successful. Please note that in general this is not a minimal SPApar_box.
castillor wrote:
Another question is, is there a way to re-orient the pole of a sphere to a certain direction and will also re-orient the uv parameter according to the pole direction? It looks like the pole is always oriented towards the z-axis.
Look at api_make_spface or api_face_sphere api_face_sphere. Both function have "pole direction" parameter. Look also at sphere Class Reference "Public Attributes" section:
SPAunit_vector pole_dir -- Direction normal to uv_oridir that points from the center to the north pole of the sphere - the maximum-u singularity.
SPAunit_vector uv_oridir -- Direction from the center of the sphere to the origin of parameter space.
As a result, you can modify a sphere description of any spherical face. Because any face on analytic surface (such as sphere) does not have pcurve, you can change description of underlying surface without penalty. Perhaps only tolerant EDGEs can bring some problems.
Re: Sphere parameter range and re-orienti ng pole of sphere
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-19-2011 11:56 AM
Look also at api_split_periodic_faces and read remark, connected with new_periodic_splitting. It can help you.

