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 > Sections > ISectionPointSet
ISectionPointSet Interface

ISectionPointSet Interface

GetPoints
GetPointSize
PointSize
GetColorPerVertex
ColorPerVertex
GetColors

ISectionPointSet interface gives access to Point Set objects. It can be queried via path: Control > GetModel > IModel > GetSection > ISection > ISectionPointSet

See also: LowDim Sample, Interface List


HRESULT GetPoints( IMatrixData** points )

Parameters

points - [out] the returned IMatrixData  interface implemented by the array of points

Return Values

S_OK in case of success.
 
Remarks:

The point array is stored as a table of numbers with 3 columns. Coordinates of i-th point are stored as the i-th column of the matrix. Number of rows coincides with size of the point array, which can be obtained via IArray2 queried from ISectionPointSet.


HRESULT GetPointSize(int* size)

Parameters

size - [out,retval] The retuned current point size in pixels

Return Values

S_OK in case of success.
Remarks:

The method returns the current value of the Point Size property, which determines size in pixels of each point in the set.


HRESULT PointSize(int size)

Parameters

size - [in] The new point size in pixels

Return Values

S_OK in case of success.
Remarks:

The method sets new value of the Point Size property, which determines size in pixels of each point in the set. For high-level environments the method is described as write-only property.


HRESULT GetColorPerVertex(VARIANT_BOOL *val)

Parameters

val - [out] The current value of the Color Per Vertex Boolean property.

Return Values

S_OK in case of success.
Remarks:

Returns the Color Per Vertex property. If it is true each point is rendered with its own color from the color array.


HRESULT ColorPerVertex(VARIANT_BOOL val)

Parameters

val - [in] New value of the Color Per Vertex Boolean property.

Return Values

S_OK in case of success.
Remarks:

If

If val is true each point will be rendered with its own color from the color array. If false the first color from the color array is used for all points. For high-level environments the method is described as write-only property


HRESULT GetColors( IMatrixData** colors )

Parameters

colors - [out] IMatrixData interface implemented by the Color Array. See remarks

Return Values

S_OK in case of success.
Remarks:

The method gives access to array of colors. The matrix represented by the returned IMatrixData has colors arranged as rows of the matrix. Four columns of the matrix correspond to RGBA components of the color. All components should be in range [0.0, 1.0]. 1.0 value of the Alpha component corresponds to fully opaque point.