All Frameworks  Class Hierarchy  This Framework  Indexes

SPAphlv5 Global Function api_asm_model_phlv5_compute


V5 outcome api_asm_model_phlv5_compute(asm_model* model,
int token,
SPAposition const eyepos,
SPAposition const target,
logical persp,
ENTITY_LIST& edges,
phlv5_options* phlv5_opts= NULL,
AcisOptions* ao= NULL)
Computes hidden line data for the given viewing parameters and assembly model.

Role: If the view token is nonzero, the data is stored on the model as attributes and identified by token. Make token zero if you do not wish to store the view. Existing attributes identified by the same token are replaced. If the perspective projection flag persp is TRUE, data is calculated for display in a perspective projection; otherwise, calculations are done for a parallel projection.

The options argument is of type phlv5_options and contains options for the hidden line removal algorithm.

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

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

Effect: Changes model

Journal: Available

Parameters:
model
assembly model.
token
view token.
eyepos
eye position.
target
target position.
persp
perspective projection flag.
edges
output list of edges.
phlv5_opts
option class.
ao
acis options.

This object is included in the file: phlv5_api.hxx

Copyright (c) 1989-2007 by Spatial Corp. All rights reserved.