Geometric Modeler |
Topology |
How to Create a Circle Sweep with Two Guides and a Radius LawCircle Sweep Subtype: Two guides and radius |
Use Case |
AbstractThe CATFrFTopologicalSweep operator enables you to create sweeps. This use case explains how to create a circle sweep with three guides. |
In this use case, you learn how to use the CATFrFTopologicalSweep operator to create circle sweeps with three guides.
![]() |
CATFrFTopologicalSweep is to be used according to the general scheme of topological operators. If need be, you can take a look at "Overview of the Topological Operators" [1] for more information. |
[Top]
CAAAdtCircleSweepTwoGuidesRadius is a use case of the CAAAdvancedTopologicalOperators.edu framework that illustrates the CAAAdvancedTopologicalOperators framework capabilities.
![]() |
The circle sweep which is created by this use case looks something like this: |
[Top]
The use case:
Note
This article only focuses on the operations related to the
CATFrFTopologicalSweep operator. Refer to "Overview of the Topological
Operators" [1] for more information on the
operations which are not detailed in the article.
[Top]
To launch CAAAdtCircleSweepTwoGuidesRadius, you will need to set up the build time environment, then compile CAAAdtCircleSweepTwoGuidesRadius.m, set up the run time environment, and then execute the use case [2].
If you simply type CAAAdtCircleSweepTwoGuidesRadius with no argument, the use case executes, but doesn't save the result in an NCGM file. If you want to save this result, provide the full pathname of the NCGM file to create. For example:
With Windows CAAAdtCircleSweepTwoGuidesRadius e:\sweep.NCGM
With UNIX CAAAdtCircleSweepTwoGuidesRadius /u/sweep.NCGM
This NCGM file can be displayed using the CAAGemBrowser use case.
[Top]
The CAAAdtCircleSweepTwoGuidesRadius use case is made of a main named CAAAdtCircleSweepTwoGuidesRadius.cpp located in the CAAAdtCircleSweepTwoGuidesRadius.m module of the CAATopologicalOperators.edu framework:
Windows | InstallRootDirectory\CAAAdvancedTopologicalOperators.edu\ CAAAdtCircleSweepTwoGuidesRadius.m\ |
Unix | InstallRootDirectory/CAAAdvancedTopologicalOperators.edu/ CAAAdtCircleSweepTwoGuidesRadius.m/ |
where InstallRootDirectory
is the directory where the CAA CD-ROM
is installed.
[Top]
The use case is divided into the following main steps:
[Top]
The curves to be used as guides are CATSpline that are simply created from the geometry factory. See [3] for information on how to create a spline.
The CATFrFTopologicalSweep operator is created by the CATCreateFrFTopologicalCircleSweep global function. The two guides are passed in the form of a list as the third argument of the function.
CATLISTP(CATGeometry) guides0; CATGeometry * guideGeom1 = (CATGeometry*)pWireBody1 ; CATGeometry * guideGeom2 = (CATGeometry*)pWireBody2 ; guides0.Append(guideGeom1); guides0.Append(guideGeom2); // (a) - Create the sweep operator // CATFrFTopologicalSweep * pSweepOpe = CATCreateFrFTopologicalCircleSweep(piGeomFactory, &topdata, &guides0); |
[Top]
The radius law is created from the geometry factory.
// (b) - Create the radius law // CATLaw * radiusLaw = ((CATLaw*)(piGeomFactory -> CreateConstantLaw(0.0, 1.0, 10.0))); pSweepOpe->SetRadiusLaw(radiusLaw); |
[Top]
This use case is an example of how to create a circle sweep with two guides and a radius law.
[Top]
[1] | Overview of the Topological Operators |
[2] | Building and Launching a CAA V5 Use Case |
[3] | Basic Topological Operators |
[Top] |
Version: 1 [Aug 2002] | Document created |
[Top] |
Copyright © 2002, Dassault Systèmes. All rights reserved.