KernelCAD Documentation

DInsight Home
Skip Navigation Links.
Start page
Quick Start
Installation
Overview of the software
What is new
Collapse KernelCAD ModelsKernelCAD Models
Collapse KernelCAD ComponentsKernelCAD Components
KernelCAD Control
KernelCAD .NET Control
Methods and Properties
Menu
Model Explorer
Birds Eye View
Programming
Direct User Access
Direct Operations
Interface Queries
Printing Support
Data Types
Modes of KernelCAD Control
DIObjectGenerator class
Properties
FlatObjectArray Poperty
Context
64 bit development
Dual Mode
Initialisation Context
Overlay Editor
Memory Management
Input validation
Collapse Advanced functionalityAdvanced functionality
Collapse InterfacesInterfaces
Alphabetical list
I3DGrid
I3DBugger
I3Dpt
IAxiBase
IAxis
IBoolSection
IBoolSectionEx
IBoundary
IColor
IConstraint
IData
IDiffSurface_KC
IDIFont
IDraw
IDrawUtil
IDraw2
IElem
IElement
IKCLine
ILightSource
ILocation
ILocationEx
IMaterial
IMetrics
IMetrics2
IModel
IModel2
IModelEx
IPatch
IKCPathCollisionDetector
IProfiles
IPropertyArray
IPropertyArray2
IStdShape
IStrip
ISurface
IText
ITexture
ITransform
IUnknown
Collapse Open Cascade TechnologyOpen Cascade Technology
Collapse DataData
Collapse MovementMovement
Collapse FramesFrames
Collapse Oriented ObjectsOriented Objects
Collapse SectionsSections
Collapse GeneralGeneral
Collapse Topological InterfacesTopological Interfaces
Collapse Viewing InterfacesViewing Interfaces
Collapse Lines And CurvesLines And Curves
Collapse Symmetry InterfacesSymmetry Interfaces
Collapse Clipping plane interfacesClipping plane interfaces
Collapse AlgorithmsAlgorithms
Collapse 2D Geometry2D Geometry
Collapse Programming Samples and TutorialsProgramming Samples and Tutorials
Collapse OverviewOverview
Collapse DeploymentDeployment
Collapse .NET Samples.NET Samples
Collapse C++ SamplesC++ Samples
Collapse Visual Basic SamplesVisual Basic Samples
Collapse Delphi SamplesDelphi Samples
Collapse 3D Debugger3D Debugger
Collapse DeploymentDeployment
Licensing
Model Viewer
Open C++ Source
Technical Support
Skip Navigation LinksHome Page > KernelCAD Components > Interfaces > Open Cascade Technology > ModModelingAlgorithms
IKO_BRepGProp_Face

IKO_BRepGProp_Face Interface

Properties of a face (patch). It also returns properties of a smooth curve on the face. The curve can be either one of four natural edges of the face or a smooth part of a curve, which can be used as a trimming curve of the face.

To use methods related to the trimming curve the curve must be loaded with one of Load() methods. So the Load() methods are normally used to select which curve (natural edge or a smooth part of the trimming curve) is selected to be handled by this interface

See also: Shape Explorer Sample

Methods

NaturalRestriction
Value2d
SIntOrder
SUIntSubs
SVIntSubs
UKnots
VKnots
Bounds
Normal
Load
FirstParameter
LastParameter
D12d
Load2

HRESULT NaturalRestriction(VARIANT_BOOL* trimmed)

Parameters

trimmed -[out,retval] The returned value. True if the face is not trimmed


HRESULT Value2d(double curveParam, KC2D* pointUV)

Parameters

curveParam - [in] Parameter along the trimming 2D curve

pointUV -[out,retval] The returned point on the curve

Remarks:

Returns point on the trimming curve inside domain rectangle of u,v parameters


HRESULT SIntOrder(double Eps, int* degreePlus)

Parameters

Eps - [in] Precision

degreePlus -[out,retval] The returned order. See remarks

Remarks:

Returns maximal degree (between u or v) plus 1 if the spline when the face is either bspline or Bezier surface.

Returns 2 if the face is plane or 3 if the face is a cylinder, cone, sphere or torus


HRESULT SUIntSubs(int* UKnotsMinus)

Parameters

UKnotsMinus -[out,retval] The returned value. See remarks

Remarks:

Returns number of U knots minus one if the spline when the face is either bspline or Bezier surface.

Returns 1 if the face is plane or 3 if the face is a cylinder, cone, sphere or torus


HRESULT SVIntSubs(int* VKnotsMinus)

Parameters

VKnotsMinus -[out,retval] The returned value. See remarks

Remarks:

Returns number of V knots minus one if the spline when the face is either bspline or Bezier surface.

Returns 1 if the face is plane or 3 if the face is a cylinder, cone, sphere or torus


HRESULT UKnots(IKO_TColStd_Array1OfReal** uKnots)

Returns the array of U knots


HRESULT VKnots(IKO_TColStd_Array1OfReal** vKnots)

Returns the array of V knots


HRESULT Bounds(double* U1, double* U2, double* V1, double* V2)

Returns the ranges of u and v parameters


HRESULT Normal(double U, double V, DIPoint* P, DIVect* VNor)

Returns the point at u and v parameters and normal vector at the point


HRESULT Load(IKO_TopoDS_Edge* edge)

Loads a smooth part of a curve as the current one to be handled by this interface. See comments on the top.


HRESULT FirstParameter(double* min)

Returns the lower limit of parameter range of trimming curve


HRESULT LastParameter(double* max)

Returns the upper limit of parameter range of trimming curve


HRESULT D12d(double param, DIPoint* P, DIVect* V1)

Returns the point at param trimming curve parameter and tangential vector at the point


HRESULT Load2(VARIANT_BOOL first, VARIANT_BOOL U)

Loads an edge or the uv rectangle as the current curve to be handled by this interface. See comments on the top.

This curve is either a top, bottom, left or right bound of a UV rectangle in which the parameters of surface are defined. If first is true, the face is initialized by either left of bottom bound. Otherwise it is initialized by the top or right one. If U is true, the face is initialized with either left or right bound. Otherwise - with either top or bottom one.