gCAD3D 2.35
dxf_ut.c File Reference

DXF utility funtions. More...

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

Functions

int DXF_colACI_colRGB (unsigned char rci, unsigned char gci, unsigned char bci)
 
int dxfw_gxt (int mode, char *txo, char *txi)
 
int dxfr_gxt (char *txt)
 
int dxfr_load_mat (Mat_4x3 m1, Vector *vz)
 

Detailed Description

DXF utility funtions.

=====================================================
List_functions_start:
dxfr_load_mat Arbitrary Axis Algorithm - TrMat from vec
dxfr_gxt text dxf -> gCad
dxfw_gxt text gCad -> dxf
DXF_colACI_colRGB returns ACI-color from RGB-color
List_functions_end:
=====================================================

Function Documentation

int DXF_colACI_colRGB ( unsigned char  rci,
unsigned char  gci,
unsigned char  bci 
)
DXF_colACI_colRGB returns ACI-color from RGB-color
ACI = AutoCad Color Index
based on the work of moses@subatomic.com
int dxfw_gxt ( int  mode,
char *  txo,
char *  txi 
)
int dxfr_gxt ( char *  txt)
int dxfr_load_mat ( Mat_4x3  m1,
Vector vz 
)
dxfr_load_mat Arbitrary Axis Algorithm - TrMat from vec
Input:
vz old z-axis
Output:
m1 new refSys
retCod: 0: refSys is parallel to old z-axis
1: refSys is not parallel to old z-axis