libDXF 0.0.1
A library with DXF related functions written in C.
|
Header file for a DXF 3D face entity (3DFACE
).
More...
Go to the source code of this file.
Data Structures | |
struct | dxf_3dface_struct |
DXF definition of an AutoCAD 3D face entity (3DFACE ). More... | |
Typedefs | |
typedef struct dxf_3dface_struct | Dxf3dface |
DXF definition of an AutoCAD 3D face entity (3DFACE ). | |
Functions | |
Dxf3dface * | dxf_3dface_new () |
Allocate memory for a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_init (Dxf3dface *face) |
Allocate memory and initialize data fields in a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_read (DxfFile *fp, Dxf3dface *face) |
Read data from a DXF file into a DXF 3DFACE entity. | |
int | dxf_3dface_write (DxfFile *fp, Dxf3dface *face) |
Write DXF output to a file for a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_free (Dxf3dface *face) |
Free the allocated memory for a DXF 3DFACE and all it's data fields. | |
void | dxf_3dface_free_chain (Dxf3dface *faces) |
Free the allocated memory for a chain of DXF 3DFACE entities and all their data fields. | |
int | dxf_3dface_get_id_code (Dxf3dface *face) |
Get the id_code from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_id_code (Dxf3dface *face, int id_code) |
Set the id_code for a DXF 3DFACE entity. | |
char * | dxf_3dface_get_linetype (Dxf3dface *face) |
Get the linetype from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_linetype (Dxf3dface *face, char *linetype) |
Set the linetype for a DXF 3DFACE entity. | |
char * | dxf_3dface_get_layer (Dxf3dface *face) |
Get the layer from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_layer (Dxf3dface *face, char *layer) |
Set the layer for a DXF 3DFACE entity. | |
double | dxf_3dface_get_elevation (Dxf3dface *face) |
Get the elevation a this DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_elevation (Dxf3dface *face, double elevation) |
Set the elevation for a DXF 3DFACE entity. | |
double | dxf_3dface_get_thickness (Dxf3dface *face) |
Get the thickness from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_thickness (Dxf3dface *face, double thickness) |
Set the thickness for a DXF 3DFACE entity. | |
double | dxf_3dface_get_linetype_scale (Dxf3dface *face) |
Get the linetype_scale from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_linetype_scale (Dxf3dface *face, double linetype_scale) |
Set the linetype_scale for a DXF 3DFACE entity. | |
int16_t | dxf_3dface_get_visibility (Dxf3dface *face) |
Get the visibility from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_visibility (Dxf3dface *face, int16_t visibility) |
Set the visibility for a DXF 3DFACE entity. | |
int | dxf_3dface_get_color (Dxf3dface *face) |
Get the color from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_color (Dxf3dface *face, int color) |
Set the color for a DXF 3DFACE entity. | |
int | dxf_3dface_get_paperspace (Dxf3dface *face) |
Get the paperspace flag value from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_paperspace (Dxf3dface *face, int paperspace) |
Set the paperspace flag for a DXF 3DFACE entity. | |
int | dxf_3dface_get_graphics_data_size (Dxf3dface *face) |
Get the graphics_data_size value from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_graphics_data_size (Dxf3dface *face, int graphics_data_size) |
Set the graphics_data_size value for a DXF 3DFACE entity. | |
int16_t | dxf_3dface_get_shadow_mode (Dxf3dface *face) |
Get the shadow_mode from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_shadow_mode (Dxf3dface *face, int16_t shadow_mode) |
Set the shadow_mode for a DXF 3DFACE entity. | |
DxfBinaryGraphicsData * | dxf_3dface_get_binary_graphics_data (Dxf3dface *face) |
Get the pointer to the binary_graphics_data from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_binary_graphics_data (Dxf3dface *face, DxfBinaryGraphicsData *data) |
Set the pointer to the binary_graphics_data for a DXF 3DFACE entity. | |
char * | dxf_3dface_get_dictionary_owner_soft (Dxf3dface *face) |
Get the soft pointer to the dictionary_owner_soft from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_dictionary_owner_soft (Dxf3dface *face, char *dictionary_owner_soft) |
Set the pointer to the dictionary_owner_soft for a DXF 3DFACE entity. | |
char * | dxf_3dface_get_material (Dxf3dface *face) |
Get the pointer to the material from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_material (Dxf3dface *face, char *material) |
Set the pointer to the material for a DXF 3DFACE entity. | |
char * | dxf_3dface_get_dictionary_owner_hard (Dxf3dface *face) |
Get the pointer to the dictionary_owner_hard from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_dictionary_owner_hard (Dxf3dface *face, char *dictionary_owner_hard) |
Set the pointer to the dictionary_owner_hard for a DXF 3DFACE entity. | |
int16_t | dxf_3dface_get_lineweight (Dxf3dface *face) |
Get the lineweight from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_lineweight (Dxf3dface *face, int16_t lineweight) |
Set the lineweight for a DXF 3DFACE entity. | |
char * | dxf_3dface_get_plot_style_name (Dxf3dface *face) |
Get the plot_style_name from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_plot_style_name (Dxf3dface *face, char *plot_style_name) |
Set the plot_style_name for a DXF 3DFACE entity. | |
long | dxf_3dface_get_color_value (Dxf3dface *face) |
Get the color_value from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_color_value (Dxf3dface *face, long color_value) |
Set the color_value for a DXF 3DFACE entity. | |
char * | dxf_3dface_get_color_name (Dxf3dface *face) |
Get the color_name from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_color_name (Dxf3dface *face, char *color_name) |
Set the color_name for a DXF 3DFACE entity. | |
long | dxf_3dface_get_transparency (Dxf3dface *face) |
Get the transparency from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_transparency (Dxf3dface *face, long transparency) |
Set the transparency for a DXF 3DFACE entity. | |
DxfPoint * | dxf_3dface_get_p0 (Dxf3dface *face) |
Get the base point of a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_p0 (Dxf3dface *face, DxfPoint *point) |
Set the base point p0 of a DXF 3DFACE entity. | |
double | dxf_3dface_get_x0 (Dxf3dface *face) |
Get the X-value of the base point x0 of a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_x0 (Dxf3dface *face, double x0) |
Set the X-value of the base point x0 of a DXF 3DFACE entity. | |
double | dxf_3dface_get_y0 (Dxf3dface *face) |
Get the Y-value of the base point y0 of a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_y0 (Dxf3dface *face, double y0) |
Set the Y-value of the base point y0 of a DXF 3DFACE entity. | |
double | dxf_3dface_get_z0 (Dxf3dface *face) |
Get the Z-value of the base point z0 of a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_z0 (Dxf3dface *face, double z0) |
Set the Z-value of the base point z0 of a DXF 3DFACE entity. | |
DxfPoint * | dxf_3dface_get_p1 (Dxf3dface *face) |
Get the first alignment point p1 of a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_p1 (Dxf3dface *face, DxfPoint *point) |
Set the first alignment point p1 of a DXF 3DFACE entity. | |
double | dxf_3dface_get_x1 (Dxf3dface *face) |
Get the X-value of the first alignment point x1 of a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_x1 (Dxf3dface *face, double x1) |
Set the X-value of the first alignment point x1 of a DXF 3DFACE entity. | |
double | dxf_3dface_get_y1 (Dxf3dface *face) |
Get the Y-value of the first alignment point y1 of a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_y1 (Dxf3dface *face, double y1) |
Set the Y-value of the first alignment point y1 of a DXF 3DFACE entity. | |
double | dxf_3dface_get_z1 (Dxf3dface *face) |
Get the Z-value of the first alignment point z1 of a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_z1 (Dxf3dface *face, double z1) |
Set the Z-value of the first alignment point z1 of a DXF 3DFACE entity. | |
DxfPoint * | dxf_3dface_get_p2 (Dxf3dface *face) |
Get the second alignment point p2 of a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_p2 (Dxf3dface *face, DxfPoint *point) |
Set the second alignment point p2 of a DXF 3DFACE entity. | |
double | dxf_3dface_get_x2 (Dxf3dface *face) |
Get the X-value of the second alignment point x2 of a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_x2 (Dxf3dface *face, double x2) |
Set the X-value of the second alignment point x2 of a DXF 3DFACE entity. | |
double | dxf_3dface_get_y2 (Dxf3dface *face) |
Get the Y-value of the second alignment point y2 of a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_y2 (Dxf3dface *face, double y2) |
Set the Y-value of the second alignment point y2 of a DXF 3DFACE entity. | |
double | dxf_3dface_get_z2 (Dxf3dface *face) |
Get the Z-value of the second alignment point z2 of a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_z2 (Dxf3dface *face, double z2) |
Set the Z-value of the second alignment point z2 of a DXF 3DFACE entity. | |
DxfPoint * | dxf_3dface_get_p3 (Dxf3dface *face) |
Get the third alignment point p3 of a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_p3 (Dxf3dface *face, DxfPoint *point) |
Set the third alignment point p3 of a DXF 3DFACE entity. | |
double | dxf_3dface_get_x3 (Dxf3dface *face) |
Get the X-value of the third alignment point x3 of a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_x3 (Dxf3dface *face, double x3) |
Set the X-value of the third alignment point x3 of a DXF 3DFACE entity. | |
double | dxf_3dface_get_y3 (Dxf3dface *face) |
Get the Y-value of the third alignment point y3 of a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_y3 (Dxf3dface *face, double y3) |
Set the Y-value of the third alignment point y3 of a DXF 3DFACE entity. | |
double | dxf_3dface_get_z3 (Dxf3dface *face) |
Get the Z-value of the third alignment point z3 of a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_z3 (Dxf3dface *face, double z3) |
Set the Z-value of the third alignment point z3 of a DXF 3DFACE entity. | |
int | dxf_3dface_get_flag (Dxf3dface *face) |
Get the flag value from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_flag (Dxf3dface *face, int flag) |
Set the flag value for a DXF 3DFACE entity. | |
int | dxf_3dface_is_first_edge_invisible (Dxf3dface *face) |
Test if the first edge of a DXF 3DFACE is invisible. | |
int | dxf_3dface_is_second_edge_invisible (Dxf3dface *face) |
Test if the second edge of a DXF 3DFACE is invisible. | |
int | dxf_3dface_is_third_edge_invisible (Dxf3dface *face) |
Test if the third edge of a DXF 3DFACE is invisible. | |
int | dxf_3dface_is_fourth_edge_invisible (Dxf3dface *face) |
Test if the fourth edge of a DXF 3DFACE is invisible. | |
Dxf3dface * | dxf_3dface_create_from_points (DxfPoint *p0, DxfPoint *p1, DxfPoint *p2, DxfPoint *p3, int id_code, int inheritance) |
Create a DXF 3DFACE by means of at least three valid DXF POINT entities. | |
Dxf3dface * | dxf_3dface_get_next (Dxf3dface *face) |
Get the pointer to the next 3DFACE entity from a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_set_next (Dxf3dface *face, Dxf3dface *next) |
Set the pointer to the next 3DFACE for a DXF 3DFACE entity. | |
Dxf3dface * | dxf_3dface_get_last (Dxf3dface *face) |
Get the pointer to the last 3DFACE entity from a linked list of DXF 3DFACE entities. |
Header file for a DXF 3D face entity (3DFACE
).
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to:
Free Software Foundation, Inc.,
59 Temple Place,
Suite 330,
Boston,
MA 02111 USA.
Drawing eXchange Format (DXF) is a defacto industry standard for the exchange of drawing files between various Computer Aided Drafting programs.
DXF is an industry standard designed by Autodesk(TM).
For more details see http://www.autodesk.com.
Definition in file 3dface.h.
typedef struct dxf_3dface_struct Dxf3dface |
DXF definition of an AutoCAD 3D face entity (3DFACE
).
Dxf3dface* dxf_3dface_new | ( | ) |
Allocate memory for a DXF 3DFACE
entity.
Fill the memory contents with zeros.
NULL
when no memory was allocated, a pointer to the allocated memory when succesful. Definition at line 54 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_3dface_init(), and dxf_3dface_read().
Allocate memory and initialize data fields in a DXF 3DFACE
entity.
NULL
when an error occurred, a pointer to the initialized memory when succesful. face | a pointer to a DXF 3DFACE entity. |
Definition at line 92 of file 3dface.c.
References _, dxf_3dface_get_binary_graphics_data(), dxf_3dface_get_p0(), dxf_3dface_get_p1(), dxf_3dface_get_p2(), dxf_3dface_get_p3(), dxf_3dface_new(), dxf_3dface_set_binary_graphics_data(), dxf_3dface_set_color(), dxf_3dface_set_color_name(), dxf_3dface_set_color_value(), dxf_3dface_set_dictionary_owner_hard(), dxf_3dface_set_dictionary_owner_soft(), dxf_3dface_set_elevation(), dxf_3dface_set_flag(), dxf_3dface_set_graphics_data_size(), dxf_3dface_set_id_code(), dxf_3dface_set_layer(), dxf_3dface_set_linetype(), dxf_3dface_set_linetype_scale(), dxf_3dface_set_lineweight(), dxf_3dface_set_material(), dxf_3dface_set_next(), dxf_3dface_set_p0(), dxf_3dface_set_p1(), dxf_3dface_set_p2(), dxf_3dface_set_p3(), dxf_3dface_set_paperspace(), dxf_3dface_set_plot_style_name(), dxf_3dface_set_shadow_mode(), dxf_3dface_set_thickness(), dxf_3dface_set_transparency(), dxf_3dface_set_visibility(), dxf_3dface_set_x0(), dxf_3dface_set_x1(), dxf_3dface_set_x2(), dxf_3dface_set_x3(), dxf_3dface_set_y0(), dxf_3dface_set_y1(), dxf_3dface_set_y2(), dxf_3dface_set_y3(), dxf_3dface_set_z0(), dxf_3dface_set_z1(), dxf_3dface_set_z2(), dxf_3dface_set_z3(), dxf_binary_graphics_data_init(), dxf_binary_graphics_data_new(), DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_DEFAULT_LINETYPE_SCALE, DXF_DEFAULT_VISIBILITY, DXF_MODELSPACE, dxf_point_init(), and dxf_point_new().
Referenced by dxf_3dface_create_from_points(), and dxf_3dface_read().
Read data from a DXF file into a DXF 3DFACE
entity.
The last line read from file contained the string "3DFACE".
Now follows some data for the 3DFACE
, to be terminated with a " 0" string announcing the following entity, or the end of the ENTITY
section marker ENDSEC
.
3DFACE
entity, or NULL
when an error occurred. fp | a DXF FILE pointer to an input file (or device). |
face | a pointer to a DXF 3DFACE entity. |
Definition at line 178 of file 3dface.c.
References _, dxf_3dface_struct::binary_graphics_data, dxf_3dface_struct::color, dxf_3dface_struct::color_name, dxf_3dface_struct::color_value, dxf_binary_graphics_data_struct::data_line, dxf_3dface_struct::dictionary_owner_hard, dxf_3dface_struct::dictionary_owner_soft, dxf_3dface_init(), dxf_3dface_new(), dxf_binary_graphics_data_init(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, dxf_3dface_struct::elevation, dxf_file_struct::filename, dxf_3dface_struct::flag, dxf_file_struct::fp, dxf_3dface_struct::graphics_data_size, dxf_3dface_struct::id_code, dxf_3dface_struct::layer, dxf_file_struct::line_number, dxf_3dface_struct::linetype, dxf_3dface_struct::linetype_scale, dxf_3dface_struct::lineweight, dxf_3dface_struct::material, dxf_binary_graphics_data_struct::next, dxf_3dface_struct::p0, dxf_3dface_struct::p1, dxf_3dface_struct::p2, dxf_3dface_struct::p3, dxf_3dface_struct::paperspace, dxf_3dface_struct::plot_style_name, dxf_3dface_struct::shadow_mode, dxf_3dface_struct::thickness, dxf_3dface_struct::transparency, dxf_3dface_struct::visibility, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.
Write DXF output to a file for a DXF 3DFACE
entity.
EXIT_SUCCESS
when done, or EXIT_FAILURE
when an error occurred. fp | a DXF FILE pointer to an output file (or device). |
face | a pointer to a DXF 3DFACE entity. |
Definition at line 514 of file 3dface.c.
References _, dxf_file_struct::acad_version_number, AutoCAD_11, AutoCAD_13, AutoCAD_14, AutoCAD_2000, AutoCAD_2002, AutoCAD_2004, AutoCAD_2008, AutoCAD_2009, dxf_3dface_get_binary_graphics_data(), dxf_3dface_get_color(), dxf_3dface_get_color_name(), dxf_3dface_get_color_value(), dxf_3dface_get_dictionary_owner_hard(), dxf_3dface_get_dictionary_owner_soft(), dxf_3dface_get_elevation(), dxf_3dface_get_flag(), dxf_3dface_get_graphics_data_size(), dxf_3dface_get_id_code(), dxf_3dface_get_layer(), dxf_3dface_get_linetype(), dxf_3dface_get_linetype_scale(), dxf_3dface_get_lineweight(), dxf_3dface_get_material(), dxf_3dface_get_paperspace(), dxf_3dface_get_plot_style_name(), dxf_3dface_get_shadow_mode(), dxf_3dface_get_thickness(), dxf_3dface_get_transparency(), dxf_3dface_get_visibility(), dxf_3dface_get_x0(), dxf_3dface_get_x1(), dxf_3dface_get_x2(), dxf_3dface_get_x3(), dxf_3dface_get_y0(), dxf_3dface_get_y1(), dxf_3dface_get_y2(), dxf_3dface_get_y3(), dxf_3dface_get_z0(), dxf_3dface_get_z1(), dxf_3dface_get_z2(), dxf_3dface_get_z3(), dxf_3dface_set_layer(), dxf_3dface_set_linetype(), dxf_binary_graphics_data_get_data_line(), dxf_binary_graphics_data_get_next(), DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_FLATLAND, DXF_PAPERSPACE, and dxf_file_struct::fp.
Free the allocated memory for a DXF 3DFACE
and all it's data fields.
NULL
when successful, or pointer to face
when an error occurred. face | a pointer to the memory occupied by the DXF 3DFACE entity. |
Definition at line 706 of file 3dface.c.
References _, dxf_3dface_get_binary_graphics_data(), dxf_3dface_get_color_name(), dxf_3dface_get_dictionary_owner_hard(), dxf_3dface_get_dictionary_owner_soft(), dxf_3dface_get_layer(), dxf_3dface_get_linetype(), dxf_3dface_get_material(), dxf_3dface_get_p0(), dxf_3dface_get_p1(), dxf_3dface_get_p2(), dxf_3dface_get_p3(), dxf_3dface_get_plot_style_name(), dxf_binary_graphics_data_free_chain(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_point_free(), and dxf_3dface_struct::next.
Referenced by dxf_3dface_free_chain().
void dxf_3dface_free_chain | ( | Dxf3dface * | faces | ) |
Free the allocated memory for a chain of DXF 3DFACE
entities and all their data fields.
faces | a pointer to the chain of DXF 3DFACE entities. |
Definition at line 756 of file 3dface.c.
References _, dxf_3dface_free(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::next.
int dxf_3dface_get_id_code | ( | Dxf3dface * | face | ) |
Get the id_code
from a DXF 3DFACE
entity.
id_code
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 789 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::id_code.
Referenced by dxf_3dface_write().
Set the id_code
for a DXF 3DFACE
entity.
face
when sucessful, NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
id_code | Identification number for the entity. This is to be an unique (sequential) number in the DXF file. |
Definition at line 826 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::id_code.
Referenced by dxf_3dface_init().
char* dxf_3dface_get_linetype | ( | Dxf3dface * | face | ) |
Get the linetype from a DXF 3DFACE
entity.
linetype
when sucessful, NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
Definition at line 868 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::linetype.
Referenced by dxf_3dface_free(), and dxf_3dface_write().
Set the linetype
for a DXF 3DFACE
entity.
face
when sucessful, NULL
when an error occurred.linetype
variable is not freed by this function. face | a pointer to a DXF 3DFACE entity. |
linetype | a string containing the linetype for the entity. |
Definition at line 909 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::linetype.
Referenced by dxf_3dface_init(), and dxf_3dface_write().
char* dxf_3dface_get_layer | ( | Dxf3dface * | face | ) |
Get the layer
from a DXF 3DFACE
entity.
layer
when sucessful, NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
Definition at line 950 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::layer.
Referenced by dxf_3dface_free(), and dxf_3dface_write().
Set the layer
for a DXF 3DFACE
entity.
face
when sucessful, NULL
when an error occurred.layer
variable is not freed by this function. face | a pointer to a DXF 3DFACE entity. |
layer | a string containing the layer for the entity. |
Definition at line 990 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::layer.
Referenced by dxf_3dface_init(), and dxf_3dface_write().
double dxf_3dface_get_elevation | ( | Dxf3dface * | face | ) |
Get the elevation
a this DXF 3DFACE
entity.
elevation
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 1030 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::elevation.
Referenced by dxf_3dface_write().
Set the elevation
for a DXF 3DFACE
entity.
face
when sucessful, NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
elevation | the elevation to be set for the entity. |
Definition at line 1061 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::elevation.
Referenced by dxf_3dface_init().
double dxf_3dface_get_thickness | ( | Dxf3dface * | face | ) |
Get the thickness
from a DXF 3DFACE
entity.
thickness
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 1094 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::thickness.
Referenced by dxf_3dface_write().
Set the thickness
for a DXF 3DFACE
entity.
face
when sucessful, NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
thickness | the thickness to be set for the entity. |
Definition at line 1131 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::thickness.
Referenced by dxf_3dface_init().
double dxf_3dface_get_linetype_scale | ( | Dxf3dface * | face | ) |
Get the linetype_scale
from a DXF 3DFACE
entity.
linetype_scale
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 1170 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::linetype_scale.
Referenced by dxf_3dface_write().
Set the linetype_scale
for a DXF 3DFACE
entity.
face
when sucessful, NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
linetype_scale | the linetype_scale to be set for the entity. |
Definition at line 1207 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::linetype_scale.
Referenced by dxf_3dface_init().
int16_t dxf_3dface_get_visibility | ( | Dxf3dface * | face | ) |
Get the visibility
from a DXF 3DFACE
entity.
visibility
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 1246 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::visibility.
Referenced by dxf_3dface_write().
Set the visibility
for a DXF 3DFACE
entity.
face
when sucessful, NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
visibility | the visibility to be set for the entity. |
Definition at line 1291 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::visibility.
Referenced by dxf_3dface_init().
int dxf_3dface_get_color | ( | Dxf3dface * | face | ) |
Get the color
from a DXF 3DFACE
entity.
color
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 1338 of file 3dface.c.
References _, dxf_3dface_struct::color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_3dface_write().
Set the color
for a DXF 3DFACE
entity.
face
when sucessful, NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
color | the color to be set for the entity. |
Definition at line 1375 of file 3dface.c.
References _, dxf_3dface_struct::color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_3dface_init().
int dxf_3dface_get_paperspace | ( | Dxf3dface * | face | ) |
Get the paperspace
flag value from a DXF 3DFACE
entity.
paperspace
flag value. face | a pointer to a DXF 3DFACE entity. |
Definition at line 1414 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::paperspace.
Referenced by dxf_3dface_write().
Set the paperspace
flag for a DXF 3DFACE
entity.
face
when sucessful, NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
paperspace | the paperspace flag value to be set for the entity. |
Definition at line 1457 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::paperspace.
Referenced by dxf_3dface_init().
int dxf_3dface_get_graphics_data_size | ( | Dxf3dface * | face | ) |
Get the graphics_data_size
value from a DXF 3DFACE
entity.
graphics_data_size
value when successful, or EXIT_FAILURE
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
Definition at line 1506 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::graphics_data_size.
Referenced by dxf_3dface_write().
Set the graphics_data_size
value for a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
graphics_data_size | the graphics_data_size value to be set for the entity. |
Definition at line 1549 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::graphics_data_size.
Referenced by dxf_3dface_init().
int16_t dxf_3dface_get_shadow_mode | ( | Dxf3dface * | face | ) |
Get the shadow_mode
from a DXF 3DFACE
entity.
shadow_mode
when successful, or EXIT_FAILURE
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
Definition at line 1597 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::shadow_mode.
Referenced by dxf_3dface_write().
Set the shadow_mode
for a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
shadow_mode | the shadow mode to be set for the entity. |
Definition at line 1642 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::shadow_mode.
Referenced by dxf_3dface_init().
DxfBinaryGraphicsData* dxf_3dface_get_binary_graphics_data | ( | Dxf3dface * | face | ) |
Get the pointer to the binary_graphics_data
from a DXF 3DFACE
entity.
binary_graphics_data
.face | a pointer to a DXF 3DFACE entity. |
Definition at line 1692 of file 3dface.c.
References _, dxf_3dface_struct::binary_graphics_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_3dface_free(), dxf_3dface_init(), and dxf_3dface_write().
Dxf3dface* dxf_3dface_set_binary_graphics_data | ( | Dxf3dface * | face, |
DxfBinaryGraphicsData * | data | ||
) |
Set the pointer to the binary_graphics_data
for a DXF 3DFACE
entity.
face | a pointer to a DXF 3DFACE entity. |
data | a string containing the pointer to the binary_graphics_data for the entity. |
Definition at line 1728 of file 3dface.c.
References _, dxf_3dface_struct::binary_graphics_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_3dface_init().
char* dxf_3dface_get_dictionary_owner_soft | ( | Dxf3dface * | face | ) |
Get the soft pointer to the dictionary_owner_soft
from a DXF 3DFACE
entity.
dictionary_owner_soft
.face | a pointer to a DXF 3DFACE entity. |
Definition at line 1772 of file 3dface.c.
References _, dxf_3dface_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_3dface_free(), and dxf_3dface_write().
Set the pointer to the dictionary_owner_soft
for a DXF 3DFACE
entity.
face | a pointer to a DXF 3DFACE entity. |
dictionary_owner_soft | a string containing the pointer to the dictionary_owner_soft for the entity. |
Definition at line 1808 of file 3dface.c.
References _, dxf_3dface_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_3dface_init().
char* dxf_3dface_get_material | ( | Dxf3dface * | face | ) |
Get the pointer to the material
from a DXF 3DFACE
entity.
material
when successful, or NULL
when an error occurred.face | a pointer to a DXF 3DFACE entity. |
Definition at line 1852 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::material.
Referenced by dxf_3dface_free(), and dxf_3dface_write().
Set the pointer to the material
for a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
material | a string containing the pointer to the material for the entity. |
Definition at line 1890 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::material.
Referenced by dxf_3dface_init().
char* dxf_3dface_get_dictionary_owner_hard | ( | Dxf3dface * | face | ) |
Get the pointer to the dictionary_owner_hard
from a DXF 3DFACE
entity.
dictionary_owner_hard
.face | a pointer to a DXF 3DFACE entity. |
Definition at line 1934 of file 3dface.c.
References _, dxf_3dface_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_3dface_free(), and dxf_3dface_write().
Set the pointer to the dictionary_owner_hard
for a DXF 3DFACE
entity.
face
when sucessful, NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
dictionary_owner_hard | a string containing the pointer to the dictionary_owner_hard for the entity. |
Definition at line 1973 of file 3dface.c.
References _, dxf_3dface_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_3dface_init().
int16_t dxf_3dface_get_lineweight | ( | Dxf3dface * | face | ) |
Get the lineweight
from a DXF 3DFACE
entity.
lineweight
when successful, or EXIT_FAILURE
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
Definition at line 2015 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::lineweight.
Referenced by dxf_3dface_write().
Set the lineweight
for a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
lineweight | the lineweight to be set for the entity. |
Definition at line 2046 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::lineweight.
Referenced by dxf_3dface_init().
char* dxf_3dface_get_plot_style_name | ( | Dxf3dface * | face | ) |
Get the plot_style_name
from a DXF 3DFACE
entity.
plot_style_name
when sucessful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
Definition at line 2080 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::plot_style_name.
Referenced by dxf_3dface_free(), and dxf_3dface_write().
Set the plot_style_name
for a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
plot_style_name | a string containing the plot_style_name for the entity. |
Definition at line 2118 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::plot_style_name.
Referenced by dxf_3dface_init().
long dxf_3dface_get_color_value | ( | Dxf3dface * | face | ) |
Get the color_value
from a DXF 3DFACE
entity.
color_value
when successful, or EXIT_FAILURE
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
Definition at line 2160 of file 3dface.c.
References _, dxf_3dface_struct::color_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_3dface_write().
Set the color_value
for a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
color_value | the color_value to be set for the entity. |
Definition at line 2191 of file 3dface.c.
References _, dxf_3dface_struct::color_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_3dface_init().
char* dxf_3dface_get_color_name | ( | Dxf3dface * | face | ) |
Get the color_name
from a DXF 3DFACE
entity.
color_name
when sucessful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
Definition at line 2225 of file 3dface.c.
References _, dxf_3dface_struct::color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_3dface_free(), and dxf_3dface_write().
Set the color_name
for a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
color_name | a string containing the color_name for the entity. |
Definition at line 2263 of file 3dface.c.
References _, dxf_3dface_struct::color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_3dface_init().
long dxf_3dface_get_transparency | ( | Dxf3dface * | face | ) |
Get the transparency
from a DXF 3DFACE
entity.
transparency
when successful, or EXIT_FAILURE
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
Definition at line 2305 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::transparency.
Referenced by dxf_3dface_write().
Set the transparency
for a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
transparency | the transparency to be set for the entity. |
Definition at line 2336 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::transparency.
Referenced by dxf_3dface_init().
Get the base point of a DXF 3DFACE
entity.
p0
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 2369 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::p0.
Referenced by dxf_3dface_free(), and dxf_3dface_init().
Set the base point p0
of a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
point | a pointer to a DXF POINT entity. |
Definition at line 2407 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::p0.
Referenced by dxf_3dface_init().
double dxf_3dface_get_x0 | ( | Dxf3dface * | face | ) |
Get the X-value of the base point x0
of a DXF 3DFACE
entity.
x0
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 2448 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p0, and dxf_point_struct::x0.
Referenced by dxf_3dface_write().
Set the X-value of the base point x0
of a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
x0 | the X-value of the base point x0 of a DXF 3DFACE entity. |
Definition at line 2488 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p0, and dxf_point_struct::x0.
Referenced by dxf_3dface_init().
double dxf_3dface_get_y0 | ( | Dxf3dface * | face | ) |
Get the Y-value of the base point y0
of a DXF 3DFACE
entity.
y0
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 2530 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p0, and dxf_point_struct::y0.
Referenced by dxf_3dface_write().
Set the Y-value of the base point y0
of a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
y0 | the Y-value of the base point y0 of a DXF 3DFACE entity. |
Definition at line 2570 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p0, and dxf_point_struct::y0.
Referenced by dxf_3dface_init().
double dxf_3dface_get_z0 | ( | Dxf3dface * | face | ) |
Get the Z-value of the base point z0
of a DXF 3DFACE
entity.
z0
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 2612 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p0, and dxf_point_struct::z0.
Referenced by dxf_3dface_write().
Set the Z-value of the base point z0
of a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
z0 | the Z-value of the base point z0 of a DXF 3DFACE entity. |
Definition at line 2652 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p0, and dxf_point_struct::z0.
Referenced by dxf_3dface_init().
Get the first alignment point p1
of a DXF 3DFACE
entity.
p1
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 2693 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::p1.
Referenced by dxf_3dface_free(), and dxf_3dface_init().
Set the first alignment point p1
of a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
point | a pointer to a DXF POINT entity. |
Definition at line 2731 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::p1.
Referenced by dxf_3dface_init().
double dxf_3dface_get_x1 | ( | Dxf3dface * | face | ) |
Get the X-value of the first alignment point x1
of a DXF 3DFACE
entity.
x1
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 2772 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p1, and dxf_point_struct::x0.
Referenced by dxf_3dface_write().
Set the X-value of the first alignment point x1
of a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
x1 | the X-value of the first alignment point x1 of a DXF 3DFACE entity. |
Definition at line 2812 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p1, and dxf_point_struct::x0.
Referenced by dxf_3dface_init().
double dxf_3dface_get_y1 | ( | Dxf3dface * | face | ) |
Get the Y-value of the first alignment point y1
of a DXF 3DFACE
entity.
y1
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 2854 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p1, and dxf_point_struct::y0.
Referenced by dxf_3dface_write().
Set the Y-value of the first alignment point y1
of a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
y1 | the Y-value of the first alignment point y1 of a DXF 3DFACE entity. |
Definition at line 2894 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p1, and dxf_point_struct::y0.
Referenced by dxf_3dface_init().
double dxf_3dface_get_z1 | ( | Dxf3dface * | face | ) |
Get the Z-value of the first alignment point z1
of a DXF 3DFACE
entity.
z1
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 2936 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p1, and dxf_point_struct::z0.
Referenced by dxf_3dface_write().
Set the Z-value of the first alignment point z1
of a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
z1 | the Z-value of the first alignment point z1 of a DXF 3DFACE entity. |
Definition at line 2976 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p1, and dxf_point_struct::z0.
Referenced by dxf_3dface_init().
Get the second alignment point p2
of a DXF 3DFACE
entity.
p2
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 3017 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::p2.
Referenced by dxf_3dface_free(), and dxf_3dface_init().
Set the second alignment point p2
of a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
point | a pointer to a DXF POINT entity. |
Definition at line 3055 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::p2.
Referenced by dxf_3dface_init().
double dxf_3dface_get_x2 | ( | Dxf3dface * | face | ) |
Get the X-value of the second alignment point x2
of a DXF 3DFACE
entity.
x2
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 3096 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p2, and dxf_point_struct::x0.
Referenced by dxf_3dface_write().
Set the X-value of the second alignment point x2
of a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
x2 | the X-value of the second alignment point x2 of a DXF 3DFACE entity. |
Definition at line 3136 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p2, and dxf_point_struct::x0.
Referenced by dxf_3dface_init().
double dxf_3dface_get_y2 | ( | Dxf3dface * | face | ) |
Get the Y-value of the second alignment point y2
of a DXF 3DFACE
entity.
y2
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 3178 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p2, and dxf_point_struct::y0.
Referenced by dxf_3dface_write().
Set the Y-value of the second alignment point y2
of a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
y2 | the Y-value of the second alignment point y2 of a DXF 3DFACE entity. |
Definition at line 3218 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p2, and dxf_point_struct::y0.
Referenced by dxf_3dface_init().
double dxf_3dface_get_z2 | ( | Dxf3dface * | face | ) |
Get the Z-value of the second alignment point z2
of a DXF 3DFACE
entity.
z2
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 3260 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p2, and dxf_point_struct::z0.
Referenced by dxf_3dface_write().
Set the Z-value of the second alignment point z2
of a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
z2 | the Z-value of the second alignment point z2 of a DXF 3DFACE entity. |
Definition at line 3300 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p2, and dxf_point_struct::z0.
Referenced by dxf_3dface_init().
Get the third alignment point p3
of a DXF 3DFACE
entity.
p3
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 3341 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::p3.
Referenced by dxf_3dface_free(), and dxf_3dface_init().
Set the third alignment point p3
of a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
point | a pointer to a DXF POINT entity. |
Definition at line 3379 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::p3.
Referenced by dxf_3dface_init().
double dxf_3dface_get_x3 | ( | Dxf3dface * | face | ) |
Get the X-value of the third alignment point x3
of a DXF 3DFACE
entity.
x3
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 3420 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p3, and dxf_point_struct::x0.
Referenced by dxf_3dface_write().
Set the X-value of the third alignment point x3
of a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
x3 | the X-value of the third alignment point x3 of a DXF 3DFACE entity. |
Definition at line 3460 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p3, and dxf_point_struct::x0.
Referenced by dxf_3dface_init().
double dxf_3dface_get_y3 | ( | Dxf3dface * | face | ) |
Get the Y-value of the third alignment point y3
of a DXF 3DFACE
entity.
y3
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 3502 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p3, and dxf_point_struct::y0.
Referenced by dxf_3dface_write().
Set the Y-value of the third alignment point y3
of a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
y3 | the Y-value of the third alignment point y3 of a DXF 3DFACE entity. |
Definition at line 3542 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p3, and dxf_point_struct::y0.
Referenced by dxf_3dface_init().
double dxf_3dface_get_z3 | ( | Dxf3dface * | face | ) |
Get the Z-value of the third alignment point z3
of a DXF 3DFACE
entity.
z3
. face | a pointer to a DXF 3DFACE entity. |
Definition at line 3584 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p3, and dxf_point_struct::z0.
Referenced by dxf_3dface_write().
Set the Z-value of the third alignment point z3
of a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
z3 | the Z-value of the third alignment point z3 of a DXF 3DFACE entity. |
Definition at line 3624 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_3dface_struct::p3, and dxf_point_struct::z0.
Referenced by dxf_3dface_init().
int dxf_3dface_get_flag | ( | Dxf3dface * | face | ) |
Get the flag
value from a DXF 3DFACE
entity.
flag
value. face | a pointer to a DXF 3DFACE entity. |
Definition at line 3665 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::flag.
Referenced by dxf_3dface_write().
Set the flag value for a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
flag | flag value for the entity. |
Definition at line 3710 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::flag.
Referenced by dxf_3dface_init().
int dxf_3dface_is_first_edge_invisible | ( | Dxf3dface * | face | ) |
Test if the first edge of a DXF 3DFACE
is invisible.
TRUE
when the edge is invisible, or FALSE
when the edge is visible. face | a pointer to a DXF 3DFACE entity. |
Definition at line 3751 of file 3dface.c.
References _, DXF_CHECK_BIT, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::flag.
int dxf_3dface_is_second_edge_invisible | ( | Dxf3dface * | face | ) |
Test if the second edge of a DXF 3DFACE
is invisible.
TRUE
when the edge is invisible, or FALSE
when the edge is visible. face | a pointer to a DXF 3DFACE entity. |
Definition at line 3782 of file 3dface.c.
References _, DXF_CHECK_BIT, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::flag.
int dxf_3dface_is_third_edge_invisible | ( | Dxf3dface * | face | ) |
Test if the third edge of a DXF 3DFACE
is invisible.
TRUE
when the edge is invisible, or FALSE
when the edge is visible. face | a pointer to a DXF 3DFACE entity. |
Definition at line 3813 of file 3dface.c.
References _, DXF_CHECK_BIT, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::flag.
int dxf_3dface_is_fourth_edge_invisible | ( | Dxf3dface * | face | ) |
Test if the fourth edge of a DXF 3DFACE
is invisible.
TRUE
when the edge is invisible, or FALSE
when the edge is visible. face | a pointer to a DXF 3DFACE entity. |
Definition at line 3844 of file 3dface.c.
References _, DXF_CHECK_BIT, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::flag.
Dxf3dface* dxf_3dface_create_from_points | ( | DxfPoint * | p0, |
DxfPoint * | p1, | ||
DxfPoint * | p2, | ||
DxfPoint * | p3, | ||
int | id_code, | ||
int | inheritance | ||
) |
Create a DXF 3DFACE
by means of at least three valid DXF POINT
entities.
face
when successful, or NULL
when an error occurred. p0 | a pointer to a DXF POINT entity. |
p1 | a pointer to a DXF POINT entity. |
p2 | a pointer to a DXF POINT entity. |
p3 | a pointer to a DXF POINT entity. |
id_code | Identification number for the entity. This is to be an unique (sequential) number in the DXF file. |
inheritance | Inherit layer, linetype, color and other relevant properties from either:
|
Definition at line 3876 of file 3dface.c.
References _, dxf_point_struct::color, dxf_point_struct::dictionary_owner_hard, dxf_point_struct::dictionary_owner_soft, dxf_3dface_init(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_point_struct::layer, dxf_point_struct::linetype, dxf_point_struct::linetype_scale, dxf_point_struct::paperspace, dxf_point_struct::thickness, and dxf_point_struct::visibility.
Get the pointer to the next 3DFACE
entity from a DXF 3DFACE
entity.
3DFACE
entity.face | a pointer to a DXF 3DFACE entity. |
Definition at line 4097 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::next.
Set the pointer to the next 3DFACE
for a DXF 3DFACE
entity.
face
when successful, or NULL
when an error occurred. face | a pointer to a DXF 3DFACE entity. |
next | a pointer to the next 3DFACE for the entity. |
Definition at line 4136 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::next.
Referenced by dxf_3dface_init().
Get the pointer to the last 3DFACE
entity from a linked list of DXF 3DFACE
entities.
3DFACE
entity.face | a pointer to a DXF 3DFACE entity. |
Definition at line 4179 of file 3dface.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_3dface_struct::next.