Creo tookit geometric traversal and evaluator

Post on 22-Jan-2018

1019 Views

Category:

Design

0 Downloads

Preview:

Click to see full reader

Transcript

CREO-TOOLKIT ( PRO-TOOLKIT)GEOMETRIC TRAVERSAL AND

EVALUATOR

Sandip Jadhav

Harshil Oza

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

TOPICS

Geometrical Representation

Evaluator

Example Code

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

GEOMETRY HIERARCHY

Geometry in Pro/Engineer repressed by below terminology Face

Surface

Contour

Edge

Curve

Part

Face

Contour

Edge

Curve

Surface

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

GEOMETRY TERMS

• An ideal geometric representation, that is, an infinite plane

Surface

• A trimmed surface. A face has one or more contours

Face

• A closed loop on a face. A contour can belong to one face only

Contour

• The boundary of a trimmed surfaceEdge

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

GEOMETRY TERMS EXAMPLE 1

Face A has 1 contour and 4 edges

Edge E2 is the intersection of faces A and B

Edge E2 is a component of contours C1 and C2

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

GEOMETRY TERMS EXAMPLE 2

Face A has 2 contours

Edges E1,E2,E3,E4 forming outer ,E5 and E6 forming inner contour

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

GEOMETRY TERMS EXAMPLE 3

Face B has 2 Outer contours and 8 edges

Face A has 1 contour and 6 edges

Face C has 1 contour and 4 edges

Model Creation: This part was extruded from a rectangular cross section. The feature on the top was added later as an extruded protrusion in the shape of a semicircleCENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

GEOMETRY TERMS EXAMPLE 3

Face A has 1 contour and 6 edges.

Face B has 1 contour and 4 edges.

Face C has 1 contour and 4 edges.

Face D has 1 contour and 4 edges.

Model Creation: This part was extruded from a cross section identical to Face A. In the Sketcher, the top boundary was sketched with two lines and an arc CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

GEOMETRY TERMS EXAMPLE 4

Face B has 3 Contour

2 Outer and 1 inner contour

Face A has 1 contour and 8 edges.

Model Creation: This part was extruded from a cross section identical to Face A

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

GEOMETRY TRAVERSAL API

Walk through the surfaces of a part, using ProSolidSurfaceVisit()

Walk through the contours of each surface, using ProSurfaceContourVisit()

Walk through the edges of each contour, using ProContourEdgeVisit()

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

EVALUATOR

The geometry of each edge or curve in Pro/ENGINEER is described as a set of three parametric equations that represent the values of X, Y, and Z as functions of the independent parameter, t

For a surface, the three equations are functions of the two independent parameters u and v

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

EVALUATOR

The Pro/TOOLKIT functions described in this section provide the ability to evaluate the parametric edge and surface functions, that is, find the values and derivatives of X, Y and Z for the specified values of t, or u and v.

They also provide for reverse evaluation

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

CURVE EVALUATOR API

ProCurveDataGet()

ProCurveParamEval()

ProCurveXyzdataEval()

ProCurveParamByLengthEval()

Retrieves the geometric representation data for the specified curve(example :for a Line it gives start and end points)

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

CURVE EVALUATOR API

ProCurveDataGet()

ProCurveParamEval()

ProCurveXyzdataEval()

ProCurveParamByLengthEval()

Finds the corresponding normalized parameter on the curve, given the XYZ point

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

CURVE EVALUATOR API

ProCurveDataGet()

ProCurveParamEval()

ProCurveXyzdataEval()

ProCurveParamByLengthEval()

Evaluates the specified curve at the parameter

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

CURVE EVALUATOR API

ProCurveDataGet()

ProCurveParamEval()

ProCurveXyzdataEval()

ProCurveParamByLengthEval()

Finds the length of the specified curve between two given parameters

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

SURFACE EVALUATOR APIProSurfaceDataGet()

ProSurfaceParamEval()

ProSurfaceUvpntVerify()

ProSurfacePrincipalCrvtEval()

ProSurfaceXyzdataEval()

Retrieves the geometric representation data of the specified surfaceSurface Type

UV Min-Max

XYZ min-Max

Orientation

Id etc

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

SURFACE EVALUATOR APIProSurfaceDataGet()

ProSurfaceParamEval()

ProSurfaceUvpntVerify()

ProSurfacePrincipalCrvtEval()

ProSurfaceXyzdataEval()

Finds the closest corresponding UV point on the surface, given the xyz point

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

SURFACE EVALUATOR APIProSurfaceDataGet()

ProSurfaceParamEval()

ProSurfaceUvpntVerify()

ProSurfacePrincipalCrvtEval()

ProSurfaceXyzdataEval()

Verifies whether the specified UV point lies within the surface boundaries

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

SURFACE EVALUATOR APIProSurfaceDataGet()

ProSurfaceParamEval()

ProSurfaceUvpntVerify()

ProSurfacePrincipalCrvtEval()

ProSurfaceXyzdataEval()

Finds principal curvatures and directions of the surface at the given UV point

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

SURFACE EVALUATOR APIProSurfaceDataGet()

ProSurfaceParamEval()

ProSurfaceUvpntVerify()

ProSurfacePrincipalCrvtEval()

ProSurfaceXyzdataEval() Evaluates the surface in the specified UV point.

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

https://twitter.com/sandipnjadhav

https://in.linkedin.com/in/sandipjadhav

Visit Us @ www.cctech.co.in

Call Us @ +91 20 4009 8381/82

Centre for Computational Technologies Pvt. Ltd.

Development Centre

1, Akshay Residancy, 50 Anand Park,Aundh, Pune -7

CENTRE FOR COMPUTATIONAL TECHNOLOGIES - (CCTECH) WWW.CCTECH.CO.IN

THANK YOU

Join us at www.simulationHub.com

top related