api_ihl_compute
List of: Functions
Subjects: Interactive Hidden Line
Contents: Interactive Hidden Line

Action: Computes interactive hidden line data and optionally stores it on the model as attributes.

Prototype: outcome api_ihl_compute (


const ENTITY_LIST& entities, // entity list


int token,
// view token


const SPAposition& eyepos,
// view eye


const SPAposition& target,
// view target


logical fPersp,
// TRUE if





// perspective





// projection


logical fIntrSeg,
// TRUE if interior





// segments needed


logical fHidSeg,
// TRUE if hidden





// segments needed


logical unfacetted,
// TRUE to avoid





// refaceting entity


logical fNoHidCalc,
// TRUE if you do not





// want to calculate





// hidden line but





// only silhouette


ENTITY_LIST& segments
// segments returned


);

Includes: #include "kernel/acis.hxx"

#include "ihl_husk/api/ihlapi.hxx"

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

#include "kernel/kerndata/lists/lists.hxx"

#include "baseutil/logical.h"

#include "baseutil/vector/position.hxx"

Description: This API computes the hidden line data for the given viewing parameters and list of entities. The list of entities is run through the faceter to generate a corresponding list of meshes. The meshes are then used to generate hidden line data. The hidden line data consists of 2D line segments stored in the ENTITY_LISTsegments.


If the view token is nonzero, the data is stored on the model as ATTRIB_IHL_VW attributes and identified by token. Existing attributes identified by the same token are removed. If the perspective projection flag fPersp is TRUE, data is calculated for display in a perspective projection; otherwise, calculations are done for a parallel projection.


All data returned is allocated with new. It is the user's responsibility to call lose for the returned camera and all entities in the list when they are no longer needed.

Errors: The distance between eyepos and target is less than SPAresabs.

Library: ihl_husk

Filename: ihl/ihl_husk/api/ihlapi.hxx

Effect: Changes model
PDF/IHL/03FN.PDF
HTM/DATA/IHL/IHL/03FN/0002.HTM