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 Models > Sections > Attributes > Textures
Textures

Textures

Textures are used when the modeled object has a specific pattern on its surface like wood or brick. Textures are bitmaps mapped to the surface of the object. Texture of a specific material can be created by taking a picture with digital camera or using a scanner and saving as a bitmap file.

For 3DS or SOR objects Textures can be applied in 3D Debugger using either Material Editor or using Surface menu (See Surface Options Dialog). Material Editor applies the loaded texture to all surfaces of the object. Surface menu commands allow applying the texture for the selected surface.

Textures for Mesh Sections can be created currently only via VRML using texCoord and texCoordIndex elements of IndexedFaceSet node. See VRML 2.0 specifications at http://tecfa.unige.ch/guides/vrml/vrml97/spec/ for details. Save the model in .wrl format. Add the above texture elements. After loading the file it can be saved as .glm model with texture embedded for faster load. Contact us if you need more options.

To apply texture to a surface select a line in Cross-section View and select "Current" command from the Surface sub-menu. To apply texture to the front or back surfaces select appropriate options from the same Surface sub-menu. If an object has a texture loaded for the whole object using the Material Editor and a texture for a specific surface, the later one overrides texture of the object. Textures applied to a surface override the texture assigned to the whole object using the Material Editor.

Textures are saved with the model. Note that textures can increase size of the model dramatically, which can be an issue when models are exchanged via the Internet or e-mail. Also note that textures are using significant amount of operating memory and processing power. Material Editor is a preferred method of Assignment of textures because it reuses the texture for all surfaces in the object.

Programmatically textures can be manipulated at run time using ITexture interface.

See also ITexture and Texture Programming sample