libDXF 0.0.1
A library with DXF related functions written in C.
Data Structures | Typedefs | Functions

3dface.h File Reference

Header file for a DXF 3D face entity (3DFACE). More...

#include "global.h"
#include "point.h"
#include "binary_graphics_data.h"
Include dependency graph for 3dface.h:
This graph shows which files directly or indirectly include this file:

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

Dxf3dfacedxf_3dface_new ()
 Allocate memory for a DXF 3DFACE entity.
Dxf3dfacedxf_3dface_init (Dxf3dface *face)
 Allocate memory and initialize data fields in a DXF 3DFACE entity.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_3dface_set_shadow_mode (Dxf3dface *face, int16_t shadow_mode)
 Set the shadow_mode for a DXF 3DFACE entity.
DxfBinaryGraphicsDatadxf_3dface_get_binary_graphics_data (Dxf3dface *face)
 Get the pointer to the binary_graphics_data from a DXF 3DFACE entity.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_3dface_set_transparency (Dxf3dface *face, long transparency)
 Set the transparency for a DXF 3DFACE entity.
DxfPointdxf_3dface_get_p0 (Dxf3dface *face)
 Get the base point of a DXF 3DFACE entity.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_3dface_set_z0 (Dxf3dface *face, double z0)
 Set the Z-value of the base point z0 of a DXF 3DFACE entity.
DxfPointdxf_3dface_get_p1 (Dxf3dface *face)
 Get the first alignment point p1 of a DXF 3DFACE entity.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_3dface_set_z1 (Dxf3dface *face, double z1)
 Set the Z-value of the first alignment point z1 of a DXF 3DFACE entity.
DxfPointdxf_3dface_get_p2 (Dxf3dface *face)
 Get the second alignment point p2 of a DXF 3DFACE entity.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_3dface_set_z2 (Dxf3dface *face, double z2)
 Set the Z-value of the second alignment point z2 of a DXF 3DFACE entity.
DxfPointdxf_3dface_get_p3 (Dxf3dface *face)
 Get the third alignment point p3 of a DXF 3DFACE entity.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_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.
Dxf3dfacedxf_3dface_get_next (Dxf3dface *face)
 Get the pointer to the next 3DFACE entity from a DXF 3DFACE entity.
Dxf3dfacedxf_3dface_set_next (Dxf3dface *face, Dxf3dface *next)
 Set the pointer to the next 3DFACE for a DXF 3DFACE entity.
Dxf3dfacedxf_3dface_get_last (Dxf3dface *face)
 Get the pointer to the last 3DFACE entity from a linked list of DXF 3DFACE entities.

Detailed Description

Header file for a DXF 3D face entity (3DFACE).

Author:
Copyright (C) 2010, 2012, 2013, 2014, 2015 2016, 2017 by Bert Timmerman <bert.timmerman@xs4all.nl>.
Version:
According to DXF R10.
According to DXF R11.
According to DXF R12.
According to DXF R13.
According to DXF R14.

Copyright Notices.


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 Documentation

typedef struct dxf_3dface_struct Dxf3dface

DXF definition of an AutoCAD 3D face entity (3DFACE).


Function Documentation

Dxf3dface* dxf_3dface_new ( )

Allocate memory for a DXF 3DFACE entity.

Fill the memory contents with zeros.

Returns:
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().

Dxf3dface* dxf_3dface_init ( Dxf3dface face)

Allocate memory and initialize data fields in a DXF 3DFACE entity.

Returns:
NULL when an error occurred, a pointer to the initialized memory when succesful.
Parameters:
facea 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().

Here is the call graph for this function:

Dxf3dface* dxf_3dface_read ( DxfFile fp,
Dxf3dface face 
)

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.

Returns:
a pointer to a DXF 3DFACE entity, or NULL when an error occurred.
Parameters:
fpa DXF FILE pointer to an input file (or device).
facea 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.

Here is the call graph for this function:

int dxf_3dface_write ( DxfFile fp,
Dxf3dface face 
)

Write DXF output to a file for a DXF 3DFACE entity.

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred.

Todo:
for version R14.
Implementing the start of application-defined group "{application_name", with Group code 102.
For example: "{ACAD_REACTORS" indicates the start of the AutoCAD persistent reactors group.

application-defined codes: Group codes and values within the 102 groups are application defined (optional).

End of group, "}" (optional), with Group code 102.

Parameters:
fpa DXF FILE pointer to an output file (or device).
facea 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.

Here is the call graph for this function:

Dxf3dface* dxf_3dface_free ( Dxf3dface face)

Free the allocated memory for a DXF 3DFACE and all it's data fields.

Returns:
NULL when successful, or pointer to face when an error occurred.
Parameters:
facea 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().

Here is the call graph for this function:

void dxf_3dface_free_chain ( Dxf3dface faces)

Free the allocated memory for a chain of DXF 3DFACE entities and all their data fields.

Parameters:
facesa 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.

Here is the call graph for this function:

int dxf_3dface_get_id_code ( Dxf3dface face)

Get the id_code from a DXF 3DFACE entity.

Returns:
id_code.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_id_code ( Dxf3dface face,
int  id_code 
)

Set the id_code for a DXF 3DFACE entity.

Returns:
a pointer to face when sucessful, NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
id_codeIdentification 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.

Returns:
a pointer to linetype when sucessful, NULL when an error occurred.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_linetype ( Dxf3dface face,
char *  linetype 
)

Set the linetype for a DXF 3DFACE entity.

Returns:
a pointer to face when sucessful, NULL when an error occurred.
Warning:
The passed linetype variable is not freed by this function.
Parameters:
facea pointer to a DXF 3DFACE entity.
linetypea 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.

Returns:
a pointer to layer when sucessful, NULL when an error occurred.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_layer ( Dxf3dface face,
char *  layer 
)

Set the layer for a DXF 3DFACE entity.

Returns:
a pointer to face when sucessful, NULL when an error occurred.
Warning:
The passed layer variable is not freed by this function.
Parameters:
facea pointer to a DXF 3DFACE entity.
layera 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.

Returns:
elevation.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_elevation ( Dxf3dface face,
double  elevation 
)

Set the elevation for a DXF 3DFACE entity.

Returns:
a pointer to face when sucessful, NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
elevationthe 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.

Returns:
thickness.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_thickness ( Dxf3dface face,
double  thickness 
)

Set the thickness for a DXF 3DFACE entity.

Returns:
a pointer to face when sucessful, NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
thicknessthe 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.

Returns:
linetype_scale.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_linetype_scale ( Dxf3dface face,
double  linetype_scale 
)

Set the linetype_scale for a DXF 3DFACE entity.

Returns:
a pointer to face when sucessful, NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
linetype_scalethe 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.

Returns:
visibility.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_visibility ( Dxf3dface face,
int16_t  visibility 
)

Set the visibility for a DXF 3DFACE entity.

Returns:
a pointer to face when sucessful, NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
visibilitythe 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.

Returns:
color.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_color ( Dxf3dface face,
int  color 
)

Set the color for a DXF 3DFACE entity.

Returns:
a pointer to face when sucessful, NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
colorthe 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.

Returns:
paperspace flag value.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_paperspace ( Dxf3dface face,
int  paperspace 
)

Set the paperspace flag for a DXF 3DFACE entity.

Returns:
a pointer to face when sucessful, NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
paperspacethe 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.

Returns:
graphics_data_size value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_graphics_data_size ( Dxf3dface face,
int  graphics_data_size 
)

Set the graphics_data_size value for a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
graphics_data_sizethe 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.

Returns:
shadow_mode when successful, or EXIT_FAILURE when an error occurred.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_shadow_mode ( Dxf3dface face,
int16_t  shadow_mode 
)

Set the shadow_mode for a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
shadow_modethe 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.

Returns:
pointer to the binary_graphics_data.
Warning:
No checks are performed on the returned pointer.
Parameters:
facea 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.

Parameters:
facea pointer to a DXF 3DFACE entity.
dataa 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.

Returns:
a pointer to the dictionary_owner_soft.
Warning:
No checks are performed on the returned pointer.
Parameters:
facea 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().

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.

Parameters:
facea pointer to a DXF 3DFACE entity.
dictionary_owner_softa 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.

Returns:
a pointer to material when successful, or NULL when an error occurred.
Warning:
No checks are performed on the returned pointer.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_material ( Dxf3dface face,
char *  material 
)

Set the pointer to the material for a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
materiala 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.

Returns:
a pointer to the dictionary_owner_hard.
Warning:
No checks are performed on the returned pointer.
Parameters:
facea 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().

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.

Returns:
a pointer to face when sucessful, NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
dictionary_owner_harda 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.

Returns:
lineweight when successful, or EXIT_FAILURE when an error occurred.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_lineweight ( Dxf3dface face,
int16_t  lineweight 
)

Set the lineweight for a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
lineweightthe 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.

Returns:
a pointer to plot_style_name when sucessful, or NULL when an error occurred.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_plot_style_name ( Dxf3dface face,
char *  plot_style_name 
)

Set the plot_style_name for a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
plot_style_namea 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.

Returns:
color_value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_color_value ( Dxf3dface face,
long  color_value 
)

Set the color_value for a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
color_valuethe 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.

Returns:
color_name when sucessful, or NULL when an error occurred.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_color_name ( Dxf3dface face,
char *  color_name 
)

Set the color_name for a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
color_namea 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.

Returns:
transparency when successful, or EXIT_FAILURE when an error occurred.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_transparency ( Dxf3dface face,
long  transparency 
)

Set the transparency for a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
transparencythe 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().

DxfPoint* dxf_3dface_get_p0 ( Dxf3dface face)

Get the base point of a DXF 3DFACE entity.

Returns:
the base point p0.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_p0 ( Dxf3dface face,
DxfPoint point 
)

Set the base point p0 of a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
pointa 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.

Returns:
the X-value of the base point x0.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_x0 ( Dxf3dface face,
double  x0 
)

Set the X-value of the base point x0 of a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
x0the 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.

Returns:
the Y-value of the base point y0.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_y0 ( Dxf3dface face,
double  y0 
)

Set the Y-value of the base point y0 of a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
y0the 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.

Returns:
the Z-value of the base point z0.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_z0 ( Dxf3dface face,
double  z0 
)

Set the Z-value of the base point z0 of a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
z0the 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().

DxfPoint* dxf_3dface_get_p1 ( Dxf3dface face)

Get the first alignment point p1 of a DXF 3DFACE entity.

Returns:
the first alignment point p1.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_p1 ( Dxf3dface face,
DxfPoint point 
)

Set the first alignment point p1 of a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
pointa 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.

Returns:
the X-value of the first alignment point x1.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_x1 ( Dxf3dface face,
double  x1 
)

Set the X-value of the first alignment point x1 of a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
x1the 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.

Returns:
the Y-value of the first alignment point y1.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_y1 ( Dxf3dface face,
double  y1 
)

Set the Y-value of the first alignment point y1 of a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
y1the 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.

Returns:
the Z-value of the first alignment point z1.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_z1 ( Dxf3dface face,
double  z1 
)

Set the Z-value of the first alignment point z1 of a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
z1the 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().

DxfPoint* dxf_3dface_get_p2 ( Dxf3dface face)

Get the second alignment point p2 of a DXF 3DFACE entity.

Returns:
the second alignment point p2.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_p2 ( Dxf3dface face,
DxfPoint point 
)

Set the second alignment point p2 of a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
pointa 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.

Returns:
the X-value of the second alignment point x2.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_x2 ( Dxf3dface face,
double  x2 
)

Set the X-value of the second alignment point x2 of a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
x2the 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.

Returns:
the Y-value of the second alignment point y2.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_y2 ( Dxf3dface face,
double  y2 
)

Set the Y-value of the second alignment point y2 of a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
y2the 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.

Returns:
the Z-value of the second alignment point z2.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_z2 ( Dxf3dface face,
double  z2 
)

Set the Z-value of the second alignment point z2 of a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
z2the 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().

DxfPoint* dxf_3dface_get_p3 ( Dxf3dface face)

Get the third alignment point p3 of a DXF 3DFACE entity.

Returns:
the third alignment point p3.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_p3 ( Dxf3dface face,
DxfPoint point 
)

Set the third alignment point p3 of a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
pointa 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.

Returns:
the X-value of the third alignment point x3.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_x3 ( Dxf3dface face,
double  x3 
)

Set the X-value of the third alignment point x3 of a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
x3the 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.

Returns:
the Y-value of the third alignment point y3.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_y3 ( Dxf3dface face,
double  y3 
)

Set the Y-value of the third alignment point y3 of a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
y3the 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.

Returns:
the Z-value of the third alignment point z3.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_z3 ( Dxf3dface face,
double  z3 
)

Set the Z-value of the third alignment point z3 of a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
z3the 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.

Returns:
flag value.
Parameters:
facea 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().

Dxf3dface* dxf_3dface_set_flag ( Dxf3dface face,
int  flag 
)

Set the flag value for a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
flagflag 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.

Returns:
TRUE when the edge is invisible, or FALSE when the edge is visible.
Parameters:
facea 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.

Returns:
TRUE when the edge is invisible, or FALSE when the edge is visible.
Parameters:
facea 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.

Returns:
TRUE when the edge is invisible, or FALSE when the edge is visible.
Parameters:
facea 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.

Returns:
TRUE when the edge is invisible, or FALSE when the edge is visible.
Parameters:
facea 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.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
p0a pointer to a DXF POINT entity.
p1a pointer to a DXF POINT entity.
p2a pointer to a DXF POINT entity.
p3a pointer to a DXF POINT entity.
id_codeIdentification number for the entity.
This is to be an unique (sequential) number in the DXF file.
inheritanceInherit layer, linetype, color and other relevant properties from either:

  1. Default (as initialised).
  2. Point p0.
  3. Point p1.
  4. Point p2.
  5. Point p3.

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.

Here is the call graph for this function:

Dxf3dface* dxf_3dface_get_next ( Dxf3dface face)

Get the pointer to the next 3DFACE entity from a DXF 3DFACE entity.

Returns:
pointer to the next 3DFACE entity.
Warning:
No checks are performed on the returned pointer.
Parameters:
facea 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.

Dxf3dface* dxf_3dface_set_next ( Dxf3dface face,
Dxf3dface next 
)

Set the pointer to the next 3DFACE for a DXF 3DFACE entity.

Returns:
a pointer to face when successful, or NULL when an error occurred.
Parameters:
facea pointer to a DXF 3DFACE entity.
nexta 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().

Dxf3dface* dxf_3dface_get_last ( Dxf3dface face)

Get the pointer to the last 3DFACE entity from a linked list of DXF 3DFACE entities.

Returns:
pointer to the last 3DFACE entity.
Warning:
No checks are performed on the returned pointer.
Parameters:
facea 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.