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

Action: Creates a copy of a topological entity all its associated subentities.

Prototype: outcome api_copy_entity_contents (


ENTITY* in_ent, // entity to be copied


ENTITY*& copy, // copy returned


SPAtransf& tr // optional



=*(SPAtransf*)NULL_REF,// transformation


AcisOptions* ao = NULL // acis options


);

Includes: #include "kernel/acis.hxx"

#include "baseutil/vector/transf.hxx"

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

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

#include "kernel/kerndata/data/entity.hxx"

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

Description: This API copies the given entity and all its associated subentities, if any. Subentities are those that are below the given entity in the topological hierarchy. It does not copy entities that are above the given entity. The optional transformation is applied to the copied entity, if applicable.


Note This special-case function only operates on VERTEX, EDGE, COEDGE, WIRE, LOOP, FACE, SHELL, and LUMP entities; for all other entity types, it calls api_copy_entity.

Errors: The pointer to an original entity is NULL

Library: kernel

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

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