Home
Reply
Regular Contributor
castillor
Posts: 74

Sphere parameter range and re-orienting pole of sphere

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

Sphere parameter range and pole orientation.jpg
Regular Contributor
Vi2
Posts: 55

Re: Sphere parameter range and re-orienting pole of sphere


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.


Regular Contributor
Vi2
Posts: 55

Re: Sphere parameter range and re-orienting pole of sphere

Look also at api_split_periodic_faces and read remark, connected with new_periodic_splitting. It can help you.