Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2022.
 
Loading...
Searching...
No Matches
STexturingUtil.h
1
2// This file is part of the 3DReshaper technology software and is a proprietary information of TECHNODIGIT.
3// Do NOT reproduce or disclose this file without TECHNODIGIT written consent.
5
6#pragma once
7
8#include "RshPluginScriptInterface/Script/SObjectStatic.h"
9
10#ifndef FCT_DOC
11namespace rsh::ScriptBinding
12{
13#endif // !FCT_DOC
14
15// @brief
16#ifdef FCT_DOC
18#else
19class STexturingUtil : public SObjectStatic
20#endif // FCT_DOC
21{
22//======================================================================================================================
23// INTERNAL FUNCTION
24//======================================================================================================================
25
26//======================================================================================================================
27// DOCUMENTED FUNCTION
28//======================================================================================================================
29
30public slots:
31
40 SCloud iCloud,
42 SImage iImage
44);
45
53// TESTED
54static Array TextureMeshSmart(
55 SPoly iPoly,
57 Array<SImage> iImgTbl,
59 Number iPixelSize = 0.01,
61 Number iTextureSize,
64 Number iExistingOption,
68 Array<SPoly> iObstaclesTbl =
69 Array<SPoly>()
72);
73
80// TESTED
82 SPoly iPoly,
84 Array<SImage> iImgTbl,
86 Number iVisibilityOption,
91 Number iImageOption,
95 Number iExistingOption
99);
100
113// TESTED
115 SPoly iPoly,
117 Array<SCloud> CloudTbl,
120 Number iIgnoreOverInM,
123 Number iDefaultRed,
125 Number iDefaultGreen,
127 Number iDefaultBlue,
129 Number iPixelSize = 0.01,
131 Number iExistingOption
135);
136
143// TESTED
145 SPoly iPoly,
147 String iFilePathName,
149 Number iNbRepWidth,
151 Number iNbRepHeight,
153 SVector iDirXScreen,
155 SVector iDirYScreen,
157 SPoint iImageOrigin
159);
160
170// TESTED
172 SPoly iPoly,
174 Number iPixelsPerTriangle,
176 Boolean iIsUpdateOnlyTriWithoutTexture
178);
179
186// TESTED
189);
190
205// TESTED
207 SPoly iPoly,
209 Array<SCloud> iCloudsTbl,
212 Number iIgnoreOver,
217 Number iResetColor,
223 Number iDefaultRed,
225 Number iDefaultGreen,
227 Number iDefaultBlue
229);
230
237// TESTED
238static Array RemoveTexture(SPoly ioPoly
240);
241
248// TESTED
251);
252
256// TESTED
257static Number GetNumberOfTextureMaps(SPoly iPoly
259);
260
264// TESTED
265static Number GetNumberOfTextures(SPoly iPoly
267);
268
275// TESTED
276static Array GetTextureName(
277 SPoly iPoly,
279 Number iTextureIdx
281);
282};
283#ifndef FCT_DOC
284} // namespace rsh::ScriptBinding
285#endif // !FCT_DOC
The SCloud class provides point cloud manipulation. The SCloud creation can be done by calling the st...
Definition: SCloud.h:41
This class is only available if you have the Survey plugin. .
Definition: SImage.h:29
3D point manipulation class. The SPoint creation can be done by calling the static functions:
Definition: SPoint.h:23
The SPoly class provides triangular mesh(es) manipulation. The SPoly creation can be done by calling ...
Definition: SPoly.h:39
The mathematical object vector.
Definition: SVector3.h:26
Definition: STexturingUtil.h:21
static Array TextureAddRepetitive(SPoly iPoly, String iFilePathName, Number iNbRepWidth, Number iNbRepHeight, SVector iDirXScreen, SVector iDirYScreen, SPoint iImageOrigin)
Adds repetitive texture to a mesh.
static Array RemoveTexture(SPoly ioPoly)
Removes all textures applied to the mesh.
static Number GetNumberOfTextures(SPoly iPoly)
Returns the number of textures applied to the mesh.
static Array ColorizeCloudFromImage(SCloud iCloud, SImage iImage)
Colorize a cloud with an image.
Array TextureFromClouds(SPoly iPoly, Array< SCloud > CloudTbl, Number iIgnoreOverInM, Number iDefaultRed, Number iDefaultGreen, Number iDefaultBlue, Number iPixelSize=0.01, Number iExistingOption)
Uses the color (or the color of inspection) of point clouds to texture the current mesh.
static Array GetTextureName(SPoly iPoly, Number iTextureIdx)
Returns the original name of a dynamic texture (texture map) applied to the mesh.
static Array TextureMeshStandard(SPoly iPoly, Array< SImage > iImgTbl, Number iVisibilityOption, Number iImageOption, Number iExistingOption)
Textures a mesh with images.
static Array ExtractImageFromTexture(SPoly iPoly)
Converts dynamic textures from a mesh to scene images.
static Array TakeColorFromClouds(SPoly iPoly, Array< SCloud > iCloudsTbl, Number iIgnoreOver, Number iResetColor, Number iDefaultRed, Number iDefaultGreen, Number iDefaultBlue)
Uses the color (or the color of inspection) of point clouds to color the vertices on the current mesh...
static Array ConvertColorToTexture(SPoly iPoly, Number iPixelsPerTriangle, Boolean iIsUpdateOnlyTriWithoutTexture)
Converts colors/inspections of a mesh into texture.
static Array ConvertTextureMapsToAtlas(SPoly iPoly)
Converts all the texture maps of a mesh into one (or several) texture atlas.
static Array TextureMeshSmart(SPoly iPoly, Array< SImage > iImgTbl, Number iPixelSize=0.01, Number iTextureSize, Number iExistingOption, Array< SPoly > iObstaclesTbl=Array< SPoly >())
Textures a mesh with images, using the Smart Texture method.
static Number GetNumberOfTextureMaps(SPoly iPoly)
Returns the number of dynamic textures (texture maps) applied to the mesh.