DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Expand ModelsModels
Expand DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Expand General GeometryGeneral Geometry
Collapse ModelModel
Expand ViewView
Expand General ComputingGeneral Computing
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation LinksHome Page > API Reference > Model > Entities > Geometry > BSpline BRep Geometry > Advanced Algorithms > IBRepDraftAngle_DG Search Documentation


IBRepDraftAngle_DG Interface

Init
Add
Build

Modifies a shape by performing taper-adding transformations on its faces. IBRepDraftAngle_DG can be obtained using IObjectGenerator_DG:

IModel_DG > IObjectGenerator_DG > Create("BRepDraftAngle_DG") > IUnknown > IBRepDraftAngle_DG


void Init(IBRepShape_DG shape)

Initialises the algorithm by attaching the shape to be processed


bool Add(IBRepFace_DG face, Vect_DG direction, double angle, IPlane_DG neutralPlane)

Adds a face for tapering.

Only planar, cylindrical or conical faces can be tapered:
If face is planar, it is tapered by inclining it by angle around the line of intersection between the plane neutralPlane and face.
Direction indicates the side of neutralPlane from which material is removed if angle is positive or added if angle is negative.

If face is cylindrical or conical, it is transformed in the same way on a single face, resulting in a conical face if face is cylindrical, and a conical or cylindrical face if it is already conical.

The taper-adding transformation is propagated from face along series of planar, cylindrical or conical faces containing face, which are tangential to one another. Check the return to see if the transformation was successful.

Nothing is done if:
face does not belong to the initial shape of this algorithm, or
face is not planar, cylindrical or conical.

Exceptions are raised if:
The initial shape is not defined, i.e. if this algorithm has not been initialized with the Init() method.
The previous call to Add() has failed. The return from Add() can be used to check for that.


IBRepShape_DG Build()