SbSphere man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



								 SbSphere(3IV)

NAME
     SbSphere (SbSph) - class for representing a sphere

INHERITS FROM
     SbSphere

SYNOPSIS
     #include <Inventor_c/SbLinear.h>

     typedef SbSphere	 SbSph

	  Functions from class SbSphere:

     void		 SbSphCircumscribe(SbSph *this, const SbBox3f *box)
     SbBool		 SbSphIntersect(const SbSph *this, const SbLine *l,
			      SbVec3f *intersection)
     SbBool		 SbSphIntersect2(const SbSph *this, const SbLine *l,
			      SbVec3f *enter, SbVec3f *exit)

DESCRIPTION
     Represents a sphere in 3D. This is a lightweight datatype that is used
     for arguments or return values in the Inventor toolkit. See SoSphere for
     a database sphere (used for rendering, picking, etc.).  Note that there
     are no Create and Delete functions for SbSphere . C programmers should
     treat spheres as standard C structs (declare them locally or use malloc()
     ):

	  /* This is defined in Inventor_c/SbLinear.h: */

	  struct {
	      struct SbVec3f center;
	      float	     radius;
	  }

	  /* Your code should look something like this: */
	  #include <Inventor_c/SbLinear.h>

	  SbSphere   s;

	  s.radius = 5.0;
	  SbV3fSetX_Y_Z( s.center, 0.0, 2.0, 0.0 );

FUNCTIONS
     void		 SbSphCircumscribe(SbSph *this, const SbBox3f *box)
	  Return a sphere containing a given box.

Page 1

SbSphere(3IV)

     SbBool		 SbSphIntersect(const SbSph *this, const SbLine *l,
			      SbVec3f *intersection)
     SbBool		 SbSphIntersect2(const SbSph *this, const SbLine *l,
			      SbVec3f *enter, SbVec3f *exit)
	  Intersect line and sphere, returning TRUE if there is an
	  intersection. The line is treated as a ray.

FILE FORMAT/DEFAULTS
     Sphere {
     }

SEE ALSO
     SbVec3f, SbLine, SoSphere

Page 2

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net