public class SbSphericalProjection extends SbProjection
SoProjection or SoGeoProjection node.
Spherical coordinates can be represented using the usual coordinate classes (SbVec3f, SoMFVec3f, etc) but the three values are considered to be
The parameters are :
| Name | Type | Index | Default |
| radius | float | 0 | 0 |
| scaleRatio | float | 1 | 1 |
The radius parameter is an offset added to each altitude value before projection. This is useful when the altitude values are, for example, relative to sea level.
The scaleRatio parameter is a multiplicative ratio applied to altitude values before projection. This is useful to exaggerate altitudes for visualization purposes.
The spherical projection of a point P(lon,lat,alt) is computed as follows:
newLon = lon * degreeToRadians newLat = lat * degreeToRadians newRadius = radius + alt * scaleRatio x = newRadius*cos(newlat)*cos(newlon) y = newRadius*cos(newlat)*sin(newlon) z = newRadius*sin(newlat)
See also:
Inventor.ConstructorCommandVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SbSphericalProjection()
Constructor.
|
SbSphericalProjection(SoProjection node)
Constructor.
|
exit, getFloatParameter, getNumFloatParameters, getNumStringParameters, getProjectedBoundingBox, getProjectionNode, getStringParameter, init, inverse, project, setNumFloatParameters, setNumStringParameters, setParameter, setParameterdispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreadspublic SbSphericalProjection(SoProjection node)
public SbSphericalProjection()
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com