api_copy_body
List of: Functions
Subjects: Model Geometry, Model Object
Contents: Kernel

Action: Creates a copy of a body.

Prototype: outcome api_copy_body (


BODY* body, // body to be copied


BODY*& new_body, // copy returned


AcisOptions* ao = NULL // acis options


);

Includes: #include "kernel/acis.hxx"

#include "kernel/kernapi/api/api.hxx"

#include "kernel/kernapi/api/kernapi.hxx"

#include "kernel/kerndata/top/body.hxx"

#include "kernel/kernapi/api/acis_options.hxx"

Description: Given a body as input, copies the given body and all its associated ("connected") entities, if any, using each entity's copy and fix-up methods (e.g., copy_scan, copy_data, fix_pointers, etc.). This includes entities that are above and/or below the given body in the topological hierarchy. For example, copying an edge copies the coedges, loops, faces, shells, etc., as well as all the associated curves, vertices, points, attributes, etc. If there are no associated entities, only the given body is copied.

Errors: The pointer to an original body is NULL or does not point to a BODY.

Library: kernel

Filename: kern/kernel/kernapi/api/kernapi.hxx

Effect: Changes model
PDF/KERN/16FNA.PDF
HTM/DATA/KERN/KERN/16FNA/0022.HTM