Functions | |
| static Array | ColorizeCloudFromImage (SCloud iCloud, SImage iImage) |
| Colorize a cloud with an image. More... | |
| static Array | ConvertColorToTexture (SPoly iPoly, Number iPixelsPerTriangle, Boolean iIsUpdateOnlyTriWithoutTexture) |
| Converts colors/inspections of a mesh into texture. More... | |
| static Array | ConvertTextureMapsToAtlas (SPoly iPoly) |
| Converts all the texture maps of a mesh into one (or several) texture atlas. More... | |
| static Array | ExtractImageFromTexture (SPoly iPoly) |
| Converts dynamic textures from a mesh to scene images. More... | |
| static Number | GetNumberOfTextureMaps (SPoly iPoly) |
| Returns the number of dynamic textures (texture maps) applied to the mesh. More... | |
| static Number | GetNumberOfTextures (SPoly iPoly) |
| Returns the number of textures applied to the mesh. More... | |
| static Array | GetTextureName (SPoly iPoly, Number iTextureIdx) |
| Returns the original name of a dynamic texture (texture map) applied to the mesh. More... | |
| static Array | RemoveTexture (SPoly ioPoly) |
| Removes all textures applied to the mesh. More... | |
| 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. More... | |
| static Array | TextureAddRepetitive (SPoly iPoly, String iFilePathName, Number iNbRepWidth, Number iNbRepHeight, SVector iDirXScreen, SVector iDirYScreen, SPoint iImageOrigin) |
| Adds repetitive texture to a mesh. More... | |
| 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. More... | |
| 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. More... | |
| static Array | TextureMeshStandard (SPoly iPoly, Array< SImage > iImgTbl, Number iVisibilityOption, Number iImageOption, Number iExistingOption) |
| Textures a mesh with images. More... | |
Colorize a cloud with an image.
| Array.ErrorCode | The error code:
|
| Array.Cloud | Colorized point cloud. |
| [in] | iCloud | Cloud to colorize. |
| [in] | iImage | Image to use. |
|
static |
Converts colors/inspections of a mesh into texture.
| Array.ErrorCode | The error code:
|
| Array.Poly | The textured mesh. |
| [in] | iPoly | Mesh to convert |
| [in] | iPixelsPerTriangle | Number of pixels per triangle to create the texture value (between 4 and 32) |
| [in] | iIsUpdateOnlyTriWithoutTexture | If true: updates only triangles that are not already textured |
|
static |
Converts all the texture maps of a mesh into one (or several) texture atlas.
| Array.ErrorCode | The error code:
|
| Array.Poly | The mesh with the texture atlas. |
| [in] | iPoly | Mesh to convert |
|
static |
Converts dynamic textures from a mesh to scene images.
| Array.ErrorCode | The error code:
|
| Array.ImageTbl | The images extracted from the texture. |
| [in] | iPoly | Mesh to extract texture from |
|
static |
Returns the number of dynamic textures (texture maps) applied to the mesh.
| The | number of textures |
| [in] | iPoly | Mesh to consider |
|
static |
Returns the number of textures applied to the mesh.
| The | number of textures |
| [in] | iPoly | Mesh to consider |
|
static |
Returns the original name of a dynamic texture (texture map) applied to the mesh.
| Array.ErrorCode | The error code.
|
| Array.String | The original texture name |
| [in] | iPoly | Mesh to consider |
| [in] | iTextureIdx | The texture index |
|
static |
Removes all textures applied to the mesh.
| Array.ErrorCode | The error code.
|
| Array.Value | The number of textures removed. |
| [in,out] | ioPoly | Mesh to consider |
|
static |
Uses the color (or the color of inspection) of point clouds to color the vertices on the current mesh.
| Array.ErrorCode | The error code.
|
| Array.Poly | The colored mesh. |
| [in] | iPoly | Mesh to color using the clouds |
| [in] | iCloudsTbl | Table of clouds containing the colors. Each of the cloud must have a colored information, else the cloud is not taken into account |
| [in] | iIgnoreOver | If a point of the cloud has a distance to the current mesh greater than this value, it is ignored. The color of a point moves to a vertex only if the distance to the mesh is less than this value. If this value is zero or less, takes 1% of the mesh size. |
| [in] | iResetColor | When should we use the default color ?
|
| [in] | iDefaultRed | Red color between [0-1] to be used for the non colored vertices |
| [in] | iDefaultGreen | Green color between [0-1] to be used for the non colored vertices |
| [in] | iDefaultBlue | Blue color between [0-1] to be used for the non colored vertices |
|
static |
Adds repetitive texture to a mesh.
| Array.ErrorCode | The error code:
|
| Array.Poly | The textured mesh. |
| [in] | iPoly | Mesh to texture |
| [in] | iFilePathName | Path to the texture |
| [in] | iNbRepWidth | Number of repetition in width of the screen |
| [in] | iNbRepHeight | Number of repetition in height of the screen |
| [in] | iDirXScreen | Direction X of the projection plane |
| [in] | iDirYScreen | Direction Y of the projection plane |
| [in] | iImageOrigin | Origin of the image |
| Array STexturingUtil::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.
| Array.ErrorCode | The error code.
|
| Array.Poly | The textured mesh. |
| [in] | iPoly | Mesh to texture |
| [in] | CloudTbl | Table of clouds containing the colors. Each of the cloud must have a colored information, else the cloud is not taken into account |
| [in] | iIgnoreOverInM | Maximum distance between mesh and points to apply the texture, in meter. If this value is zero or less, taking 1% of the mesh size. |
| [in] | iDefaultRed | Red color between [0-1] to be used for the not textured triangles |
| [in] | iDefaultGreen | Green color between [0-1] to be used for the not textured triangles |
| [in] | iDefaultBlue | Blue color between [0-1] to be used for the not textured triangles |
| [in] | iPixelSize | Size of a pixel |
| [in] | iExistingOption | Used if the mesh is already textured
|
|
static |
Textures a mesh with images, using the Smart Texture method.
| Array.ErrorCode | The error code:
|
| Array.Poly | The textured mesh. |
| [in] | iPoly | Mesh to texture |
| [in] | iImgTbl | Table of images used for texturing |
| [in] | iPixelSize | Target pixel size, in file unit per pixel |
| [in] | iTextureSize | The final texture will have a maximum size of iTextureSize * iTextureSize pixels. A common value is 2048. |
| [in] | iExistingOption | Used if the mesh is already textured
|
| [in] | iObstaclesTbl | List of meshes to be considered as obstacles when selecting images to texture |
|
static |
Textures a mesh with images.
| Array.ErrorCode | The error code:
|
| Array.Poly | The textured mesh. |
| [in] | iPoly | Mesh to texture |
| [in] | iImgTbl | Table of images used for texturing |
| [in] | iVisibilityOption | Triangles that will be textured
|
| [in] | iImageOption | Used if iImgTbl contains more than 1 image
|
| [in] | iExistingOption | Used if the mesh is already textured
|