BRL-CAD
#include "common.h"
#include <string.h>
#include "nurb.h"
#include "raytrace.h"
Include dependency graph for nmg_copy.c:

Go to the source code of this file.

Functions

struct model * nmg_clone_model (const struct model *original)
 

Detailed Description

Support routine for n-Manifold Geometry: Deep copy of NMG model structure

Definition in file nmg_copy.c.

Function Documentation

struct model* nmg_clone_model ( const struct model *  original)

Makes a deep copy of a NMG model structure.

Definition at line 714 of file nmg_copy.c.

References BN_TOL_MAGIC, bu_calloc(), bu_free(), BU_LIST_FOR, BU_LIST_INSERT, bn_tol::dist, bn_tol::dist_sq, if(), bn_tol::magic, nmg_mm(), bn_tol::para, and bn_tol::perp.

Referenced by testcase_nmg_mm(), testcase_nmg_mmr(), and testcase_nmg_mrsv().

Here is the call graph for this function: