General Information


This is general information on modeling in synergy using the parasolids kernel interacting with synergy geometry.

Solid modeling requires graphics to be in OpenGL mode.    Solid functions will automatically select OpenGL mode.    If your machine does not support OpenGL, you can not use solid modeling.


Parasolids Database
Definition of Terms
Types of Bodies
Interaction Between Parasolids and Synergy
CAD Settings Applicable to Parasolids Models

Parasolids Database

The parasolids database is maintained within synergy but is totally independent of the synergy database.    This is done so that parasolid files may be directly brought into synergy and so that solid models created in synergy may be output directly as a parasolids file and can be read by any application which reads a parasolids file.


[Back to Top]

Definition of Terms

Vertex: A point in 3D space

Edge: A curve in space connecting two vertices.

Face: A surface in space bounded by one or more edges.

Body: A collection of faces, edges, and vertices which form an object.    Bodies are the basic container entities for storing parasolids data.


[Back to Top]

Types of Bodies

Wire Body: A wire body is a connected set of edges and vertices.    A wire body is the geometric equivalent of a synergy contour.    Synergy contours may be used to create wire bodies and wire bodies may be exploded into synergy contours.

Sheet Body: A sheet body is a connected set of faces, edges and vertices. The faces, edges and vertices are connected in such a way as to form what is mathematically refered to as a 2 dimensional manifold.    Basically this means that even though the sheet bends and twists in space a small neighborhood of each point is like a sheet of paper.    The outer surface of a sphere or torus or a box is a 2 dimensional manifold.    On the other hand if we take 3 planes intersecting like a T or a Y, this is not a manifold because the points on the junction of the planes are not like a sheet of paper.

Solid Body: A solid body is a set of faces, edges, vertices which are connected together to enclose a 3 dimensional volume.

General or Non Manifold Body: This is a collection of faces, edges, and vertices which do not satisfy the strict requirements of the above bodies.    We will generally not allow these bodies to persist.    They may occur after an untrapped error condition.    Most operations are not valid on general bodies.


[Back to Top]

Interaction Between Parasolids and Synergy

The solid modeling geometry which corresponds directly with synergy geometry may be used directly as synergy geometry without conversion.    For example, if an edge is geometrically a line entity it may be picked as any other line.    As another example, a user could calculate the intersection point between a synergy line and the face of a body, without making a distinction between them.    A face may be used like a synergy trimmed surface.    An edge may be used like its corresponding synergy geometry entity.

Synergy operations which use contours or groups of entities cannot directly reference the solid model but must reference converted geometry. ( We may, however, write special scripts or functions which make this transparent to the user).

The entities of the solid model, however, can only be modified by the solid modeling functions available from synergy.    For example, if the user attempted to corner trim a synergy line with an edge on the solid model, the synergy line would be trimmed but the edge would remain unchanged.    Likewise, operations like delete in a box, leave the solid model untouched.    It is important to note that the solid model can only be modified in ways that keep its structure intact.    The methods which do this are provided in the solid modeling functions.

Faces and edges from the solid model may be exploded directly into synergy geometry.    Once exploded they are like any other synergy entity.

When a new face is created it is colored with the current color.    Faces and edges are not individually placed on layers, they inherit the layer from the parent body.

When a new body is created it is colored with the current color and it is placed on the current layer.

Show by Layer and Show by Color only apply to entire bodies.    Even though a body may have individual faces colored many different colors, Show by Color treats the body as if it has only one color, the color assigned to the body.    Synergy does not allow viewing partial bodies, except with GL Clipping.

Bodies (wire, sheet, or solid) may be placed on layers. The entire body is on the layer. The user cannot place individual faces or edges on a layer.

Bodies may be placed on a layer by using Property * Layer * Entity

A Body may be colored by using Solid Modeling: Convert * Attributes * Color Body

A Body may be named by using Solid Modeling: Convert * Attributes * Name Body

Faces may be colored by using Property * Color * Entity.

A Face or Edge may be named by using Solid Modeling: Convert * Attributes * Name Entity

Edges are not individually layered or colored.    The color for all edges is controled by the CadSetting PKEdgePen.    The line type is controlled by the CadSetting PKEdgeLineType.

When picking for geometric constructions, the system gives priority to synergy geometry.    If a synergy line, circle or whatever, lies in the pick range of the cursor it will select that entity, only if a synergy entity is not found will it then try to find a solid edge to use as the line or circle.    This behavior will have the result of letting synergy geometry be picked "through" a rendered solid. Most of the time this can be useful, at times it can be confusing.    This can be a problem if both synergy surfaces and parasolid faces are rendered together on the screen.

Functions which require picking a solid entity will automatically only select solid entities.

Pick in a box is valid only for synergy entities.


[Back to Top]

CAD Settings Applicable to Parasolid Models

SystemConst.PKHiddenMode: 0    
0
1
2
Mode for hidden lines.
complete wireframe
remove hidden lines
show hidden lines with below properties
SystemConst.WsPKHiddenLinePen: 0 Pen color for hidden lines
SystemConst.PKHiddenLineType: 5 Line type for hidden lines
SystemConst.WsPKRenderEdgeSm: 0     Turn off smooth edges when rendering hidden line views
SystemConst.PKSurfPlaneTol: 0.001    tolerance to distinguish a curved from a flat surface
SystemConst.PKSurfPlaneAng: 0.52 30 degrees in radians

SystemConst.PKSurfGFactor: 10.0 graphics factor for surfaces
SystemConst.PKCurveChordTol: 0.001 tolerance to distinguish between a curve and a line
SystemConst.PKCurveChordAng: 0.52 30 degrees in radians
SystemConst.PKCurveGFactor: 10.0 graphics factor for curves
SystemConst.PKEdgeLineType: 0 Line type for wireframe edges
SystemConst.PKEdgePen: 0 Pen color for wireframe edges
SystemConst.PKGLOnSolidRead: 1 Turn GL On when reading a synergy file with a solid.

[Back to Top]