gCAD3D 2.40
ut_sru.c File Reference

Ruled-Surface-Functions. More...

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../ut/ut_geo.h"
#include "../ut/func_types.h"

Functions

double SRU_parsru_utPt2 ()
 
double SRU_parsru_utLn2 ()
 
int SRU_CvIso_parsru (void *objo, int *oTyp, Memspc *memSeg, ObjGX *sru, double dp, int iDir)
 
double UT3D_sru_ck_planar (ObjGX *oxi)
 
int UT3D_sru_init (int typ1, int dir1, void *obj1, int typ2, int dir2, void *obj2, int closed)
 
int UT3D_cv_sru_ (Point *p1Tab, Point *p2Tab, int *ptNr, int ptMax)
 
int UT3D_cv_sruCv (Point *pTab, int *ptNr, int ptMax, int typ, int dir, void *oxx)
 
int UT3D_parsru_pt (double *parU, double *parV, Point *pt3)
 
int UT3D_pt_evparsru (Point *pto, double parU, double parV)
 
int SRU_pt_evparcrv (Point *pto, double lpar, int cvNr)
 
int SRU_parsru_intObj (double *pU, double *pV, Point *ptx, int typ, void *objIn)
 
int SRU_init_basPts ()
 
int SRU_parsru_utPtIni (double *u1, double *u2, double *up, void *objIn)
 
int SRU_parsru_utLnIni (double *u1, double *u2, double *up, void *objIn)
 
int SRU_parsru_utPtParDist (double *par, double *dist, Point *px1, Point *px2, Point *pt3)
 
int SRU_parsru_utPtSel (double *u1, double *u2, double *up, double *par, double *dist, double *distold, double u1Act, double u2Act)
 
double SRU_parsru_utPt2 (Point *px1, Point *px2, Point *ptx, Line *ln1, Line *ln2, Point *pt3)
 
double SRU_parsru_utLn2 (Point *px1, Point *px2, Point *ptx, Line *ln1, Line *ln2, Line *lni)
 

Variables

static int SRU_typ1
 
static int SRU_typ2
 
static int SRU_dir1
 
static int SRU_dir2
 
static int SRU_clos
 
static void * SRU_obj1
 
static void * SRU_obj2
 
static double SRU_d1
 
static double SRU_d2
 
static Line SRU_ln0
 
static Line SRU_ln1
 
static Line SRU_ln25
 
static Line SRU_ln50
 
static Line SRU_ln75
 
static Line SRU_ln99
 
static Line SRU_ln100
 

Detailed Description

Ruled-Surface-Functions.

=====================================================
List_functions_start:
UT3D_sru_ck_planar check if Ruled_Sur = planar
UT3D_parsru_pt u/v-Parameter from 3D-ruled-surfacePoint
UT3D_pt_evparsru 3D-point <-- evaluate ruled-surfaceParameters
UT3D_cv_sru polygons <-- Randkurven
SRU_pt_evparcrv einen Punkt auf curve errechnen (UT3D_sru_init !)
SRU_CvIso_parsru get iso-curve from RuledSurface
UT3D_sru_init init transformationen ..
List_functions_end:
=====================================================

Function Documentation

double SRU_parsru_utPt2 ( )
double SRU_parsru_utLn2 ( )
int SRU_CvIso_parsru ( void *  objo,
int *  oTyp,
Memspc memSeg,
ObjGX sru,
double  dp,
int  iDir 
)
double UT3D_sru_ck_planar ( ObjGX oxi)
int UT3D_sru_init ( int  typ1,
int  dir1,
void *  obj1,
int  typ2,
int  dir2,
void *  obj2,
int  closed 
)
int UT3D_cv_sru_ ( Point p1Tab,
Point p2Tab,
int *  ptNr,
int  ptMax 
)
int UT3D_cv_sruCv ( Point pTab,
int *  ptNr,
int  ptMax,
int  typ,
int  dir,
void *  oxx 
)
int UT3D_parsru_pt ( double *  parU,
double *  parV,
Point pt3 
)
int UT3D_pt_evparsru ( Point pto,
double  parU,
double  parV 
)
int SRU_pt_evparcrv ( Point pto,
double  lpar,
int  cvNr 
)
int SRU_parsru_intObj ( double *  pU,
double *  pV,
Point ptx,
int  typ,
void *  objIn 
)

Input: typ, objIn ruledSurface Output: pU parameter along curve (X) pV parameter along line (Y) ptx ?

int SRU_init_basPts ( )
int SRU_parsru_utPtIni ( double *  u1,
double *  u2,
double *  up,
void *  objIn 
)

Input: objIn point Output: u1, u2, up, Retcod: 0 u1, u2, up set; 1 point objIn lies on line with parameter u1.

int SRU_parsru_utLnIni ( double *  u1,
double *  u2,
double *  up,
void *  objIn 
)
int SRU_parsru_utPtParDist ( double *  par,
double *  dist,
Point px1,
Point px2,
Point pt3 
)
int SRU_parsru_utPtSel ( double *  u1,
double *  u2,
double *  up,
double *  par,
double *  dist,
double *  distold,
double  u1Act,
double  u2Act 
)
double SRU_parsru_utPt2 ( Point px1,
Point px2,
Point ptx,
Line ln1,
Line ln2,
Point pt3 
)
double SRU_parsru_utLn2 ( Point px1,
Point px2,
Point ptx,
Line ln1,
Line ln2,
Line lni 
)

Variable Documentation

int SRU_typ1
static
int SRU_typ2
static
int SRU_dir1
static
int SRU_dir2
static
int SRU_clos
static
void* SRU_obj1
static
void * SRU_obj2
static
double SRU_d1
static
double SRU_d2
static
Line SRU_ln0
static
Line SRU_ln1
static
Line SRU_ln25
static
Line SRU_ln50
static
Line SRU_ln75
static
Line SRU_ln99
static
Line SRU_ln100
static