PrimGenTORUSObject

Section: C Library Functions (3)
Updated: IRIT Version 6.0
Index Return to Main Contents
 

NAME

PrimGenTORUSObject()  

SYNOPSIS

geom_lib/primitiv.c:703

IPObjectStruct *PrimGenTORUSObject(VectorType Center,
                                   VectorType Normal,
                                   RealType Rmajor,
                                   RealType Rminor)
 

DESCRIPTION

Routine to create a TORUS geometric object defined by Center - torus 3d center point, the main torus plane normal Normal, major radius Rmajor and minor radius Rminor (Tube radius). Teta runs on the major circle, Fee on the minor one. Then
 X = (Rmajor + Rminor * cos(Fee)) * cos(Teta)
 Y = (Rmajor + Rminor * cos(Fee)) * sin(Teta)
 Z = Rminor * sin(Fee) See also PrimSetResolution on fineness control of approximation of the primitive using flat faces.  

PARAMETERS:

Center: Center location of the TORUS primitive.

Normal: Normal to the major plane of the torus.

Rmajor: Major radius of torus.

Rminor: Minor radius of torus.  

FUNCTION RETURN VALUE

IPObjectStruct *: A TOURS Primitive.

 

ORIGIN

(C) Copyright 1989/90-95 Gershon Elber, Technion, IIT


 

Index

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS:
FUNCTION RETURN VALUE
ORIGIN

This document was created by man2html, using the manual pages.
Time: 07:28:14 GMT, July 20, 2024