Further Implementation Decisions   

<<< Supplying A Frustrum Chapters Parasolid Source Code Collateral >>>

Contents

[back to top]


7.1 Introduction

This chapter discusses other functionality that you may want to consider using when integrating your application with Parasolid. None of the issues discussed here are essential in order to get a working frustrum.

 

Related Topics:

[back to top]


7.2 Handling of run-time errors and user interrupts

You can register signal handlers with the operating system to recover from run-time errors and user interrupts. If you don’t have a signal handler in these situations, your application will most likely abort. For more information, see Volume 17, Error Handling.

[back to top]


7.3 Roll-back

Parasolid has two types of roll-back, both of which are available through the same mechanism.

If implemented, you can use roll-back in your application in several ways. For example:

You could implement partition-level roll-back so that each partition has only one part, users could make changes to individual parts and roll them back without affecting other parts in the session.

Roll-back is enabled by registering a delta frustrum before the session is started. The delta frustrum performs a similar function to the standard frustrum, and specifies how roll-back (delta) information is written and read.

See Chapter 97, “Rollback”, for more information.

[back to top]


7.4 Tracking entities

Your application may need to track various entities within any Parasolid session. For example, tracking is required in order to:

There are several ways of tracking entities in Parasolid, and you need to decide which approach you want to take. The most straightforward ways of tracking entities are:

[back to top]


7.5 Session parameters

There are a number of session-level parameters that you can set up to alter the behaviour for the whole session. Examples of session-wide parameters include:

 

Parameter

Description

Continuity and self intersection checking:

PK_SESSION_set_check_continuity

PK_SESSION_set_check_self_int

These settings affect the level of checking performed by various checking functions, and also control whether G1-discontinuous or self-intersecting geometry can be attached to topology.

General topology:

PK_SESSION_set_general_topology

This setting allows general bodies - such as non-manifold or disconnected bodies - to be created from Boolean operations.

Roll forward:

PK_SESSION_set_roll_forward

This option defines whether a session can be rolled forward at any stage. The setting of this option has an affect on the roll-back management strategy your application needs to use.

SMP (Symmetric Multi Processing):

PK_SESSION_set_smp

This option enables Parasolid to make best use of machines that have more than one processor.

Session-level parameters are set to their default values when the Parasolid session is started. If you wish to change these values, you should do so after the session has started and when appropriate in your application workflow.For a list of all the session-wide parameters initialised at the start of a Parasolid session, see PK_SESSION_start.

[back to top]


7.6 Upgrading your version of Parasolid

There are many benefits to upgrading your Parasolid version, including accessing new API functions, new options within an existing API function, and bug fixes. At times it may be necessary to upgrade your Parasolid version with minimal disruption to your application. For example, if you are close to a release deadline and require a bug fix in a newer version of Parasolid.

A plug-and-play mechanism exists within Parasolid that enables you to use a newer version of Parasolid (as a dynamically linked library) without the need to rebuild your application. The mechanism performs a mapping between older and newer options structures so that the new build of Parasolid correctly interprets the options set in your existing application code.

To access all available functional enhancements when upgrading to a newer Parasolid version, you will need to rebuild your application code.

For more information on the plug-and-play mechanism see Section 9.8, “Compatibility between Parasolid versions”.

[back to top]

<<< Supplying A Frustrum Chapters Parasolid Source Code Collateral >>>