Action:
|
Applies a transformation to an entity.
|
|
Prototype:
|
outcome api_transform_entity (
|
|
|
ENTITY* ent,
|
// entity to transform
|
|
|
const SPAtransf& tform,
|
// transform to apply
|
|
|
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/data/entity.hxx"
|
|
#include "baseutil/vector/transf.hxx"
|
|
#include "kernel/kernapi/api/acis_options.hxx"
|
|
Description:
|
If the entity is a
BODY, this API concatenates the transform with any transform that is already applied. If the entity is not a body, this API transforms the geometry.
|
|
|
If the
Operators Component is linked into the executable, one can do non-uniform scaling using space warping. For each library your application links in, call the API that initializes that library. Lowest libraries (like
Kernel) go first.
|
|
Errors:
|
A
NULL pointer to an entity is specified.
|
|
An attempt is made to transform an entity that belongs to another entity.
|
|
Library:
|
kernel
|
|
Filename:
|
kern/kernel/kernapi/api/kernapi.hxx
|
|
Effect:
|
Changes model
|