ut_surstd.c File Reference


Detailed Description

Planar/Conus/Torus/Sphere-Surface.

=====================================================
Liste_Funktionen_Beginn:

SUR_Disp_Sur              temp. Display Surfaces

UTO_ck_surfTyp            returns surfSubTyp      ((../ut/ut_obj.c)
SUR_ck_typ                get typ & index of supportSurf, nr of contours.
SPU_ckMinSiz              Kontur testen ob groesser als tol

SUP_orient                Orientieren der Konturen
SUP_load_c                alle Konturen laden
SUP_addBound              Tabelle aus 3D-Punkten aufbauen
SUR_pt2_prjptsur          project 3D-point on surface (get 2D-point)
UT3D_ptvc_sus             Point+Vector from SurStd  (Normalvec auf Flaeche)


----------- Planar --------------------------
SUP_sup_ContTab           make planar surf from ContTab
SUP_ContTab_pTab          make ContTab from points


----------- Conus --------------------------
UT3D_parscon_pt           u/v-Parameter from  3D-conic-surfacePoint
UT3D_pt_evparscon         3D-point <-- evaluate conic-surfaceParameters
UT3D_pt_projptbcon        project PT -> Conus
UT3D_bcon_pt2rd2          Conus from 2 points + 2 radius


----------- Torus --------------------------
UT3D_parstor_pt           u/v-Parameter from  3D-toric-surfacePoint
UT3D_pt_evparstor         3D-point <-- evaluate toric-surfaceParameters
UT3D_pt_projptbtor        project PT -> Torus


----------- Sphere -------------------------
UT3D_parsph_pt            u/v-Parameter from sphere
UT3D_pt_evparsph          3D-point <-- evaluate spher-surfaceParameters
UT3D_angsph_pt            compute hor/vert angle of point on sphere

Liste_Funktionen_Ende:
=====================================================

- see also:
../ut/ut_srv.c (Revolved-Surface-Functions)
../ut/ut_sru.c (Ruled-Surface-Functions)

#include "../xa/MS_Def0.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../ut/ut_geo.h"
#include "../db/ut_DB.h"
#include "../gr/ut_UI.h"

Functions

int SUR_pt2_prjptsur (Point *pt2o, Point *pt3i, ObjGX *oSur)
int SUP_sup_ContTab (void *oSpc, int *oSiz, Memspc *memSeg1, ContTab *cTab, int cNr)
int SUP_ContTab_pTab (ContTab *cTab, int pNr, Point *pTab, Vector *vcn)
int SUP_orient (Vector *vcz, ContTab *cTab, int cNr)
int SUP_load_c (ContTab *cTab, int *cNr, int cMax, Point *pTab, int pMax, ObjGX *oxi, int sTyp)
int SUP_addBound (ContTab *cTab, int *cNr, int cMax, Point *pTab, int pMax, ObjGX *oxi, double tol)
int SPU_ckMinSiz (int pNr, Point *pTab)
int UT3D_ptvc_sus (Point *pto, Vector *vco, Memspc *memSeg1, SurStd *sus)
int UT3D_parscon_pt (double *parU, double *parV, Point *pti, Mat_4x3 imat)
int UT3D_pt_evparscon (Point *pto, Conus *con, double parU, double parV, Mat_4x3 mat)
int UT3D_pt_projptbcon (Point *pto, Conus *co1, Point *pti)
int UT3D_bcon_pt2rd2 (Conus *co1, Point *pt1, Point *pt2, double rd1, double rd2)
int UT3D_parsph_pt (double *parU, double *parV, Point *pti, double rds, Mat_4x3 imat)
int UT3D_pt_evparsph (Point *pto, double rds, double parU, double parV, Mat_4x3 mat)
int UT3D_angsph_pt (double *as, int mode, Plane *pls, Point *pt1)
int UT3D_parstor_pt (double *parU, double *parV, Point *pti, Torus *tor, Mat_4x3 imat)
int UT3D_pt_evparstor (Point *pto, Torus *tor, double parU, double parV, Mat_4x3 mat)
int UT3D_pt_projptbtor (Point *pto, Torus *to1, Point *pti)
int SUR_ck_typ (int *suTyp, ObjGX **sSur, int *cNr, ObjGX *o1)
 ================================================================
int SUR_Disp_Sur (ObjGX *o1, Memspc *wrkSpc, int att,...)
 ================================================================


Function Documentation

int SUR_pt2_prjptsur ( Point pt2o,
Point pt3i,
ObjGX oSur 
)

int SUP_sup_ContTab ( void *  oSpc,
int *  oSiz,
Memspc memSeg1,
ContTab cTab,
int  cNr 
)

int SUP_ContTab_pTab ( ContTab cTab,
int  pNr,
Point pTab,
Vector vcn 
)

int SUP_orient ( Vector vcz,
ContTab cTab,
int  cNr 
)

int SUP_load_c ( ContTab cTab,
int *  cNr,
int  cMax,
Point pTab,
int  pMax,
ObjGX oxi,
int  sTyp 
)

int SUP_addBound ( ContTab cTab,
int *  cNr,
int  cMax,
Point pTab,
int  pMax,
ObjGX oxi,
double  tol 
)

int SPU_ckMinSiz ( int  pNr,
Point pTab 
)

int UT3D_ptvc_sus ( Point pto,
Vector vco,
Memspc memSeg1,
SurStd sus 
)

int UT3D_parscon_pt ( double *  parU,
double *  parV,
Point pti,
Mat_4x3  imat 
)

int UT3D_pt_evparscon ( Point pto,
Conus con,
double  parU,
double  parV,
Mat_4x3  mat 
)

int UT3D_pt_projptbcon ( Point pto,
Conus co1,
Point pti 
)

int UT3D_bcon_pt2rd2 ( Conus co1,
Point pt1,
Point pt2,
double  rd1,
double  rd2 
)

int UT3D_parsph_pt ( double *  parU,
double *  parV,
Point pti,
double  rds,
Mat_4x3  imat 
)

int UT3D_pt_evparsph ( Point pto,
double  rds,
double  parU,
double  parV,
Mat_4x3  mat 
)

int UT3D_angsph_pt ( double *  as,
int  mode,
Plane pls,
Point pt1 
)

int UT3D_parstor_pt ( double *  parU,
double *  parV,
Point pti,
Torus tor,
Mat_4x3  imat 
)

int UT3D_pt_evparstor ( Point pto,
Torus tor,
double  parU,
double  parV,
Mat_4x3  mat 
)

int UT3D_pt_projptbtor ( Point pto,
Torus to1,
Point pti 
)

int SUR_ck_typ ( int *  suTyp,
ObjGX **  sSur,
int *  cNr,
ObjGX o1 
)

================================================================

================================================================ SUR_ck_typ get typ & index of supportSurf, nr of contours. Output: suTyp Typ supportSurface: Typ_Error = Error Typ_SURPLN = Planar surf Typ_SURRV = Revolved Sur Typ_SURRU = Ruled Sur Typ_SURBSP = B_Spline Surf nurb (SBSP) sSur the ObjGX-Record of the supportSurface cNr Anzahl Konturen: 0=unbegrenzte Stuetzflaeche; 1=nur Aussenkontur; > 1 = Aussenkontur + (iCont-1) LochKonturen. RetCod: DB-Index of supportSurface.

int SUR_Disp_Sur ( ObjGX o1,
Memspc wrkSpc,
int  att,
  ... 
)

================================================================

================================================================ wrkSpc unused !


Generated on Sat May 30 09:31:56 2009 for gCAD3D by  doxygen 1.5.6