Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Scene
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Scene/MeshSceneAdapter.h |
| Include | #include "Scene/MeshSceneAdapter.h" |
Syntax
class IMeshSpatialWrapper
Remarks
Abstract interface to a spatial data structure for a mesh
Variables
| Type | Name | Description | |
|---|---|---|---|
| FMeshTypeContainer | SourceContainer |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AppendMesh
(
FDynamicMesh3& AppendTo, |
Append the geometry represented by this wrapper to the accumulated AppendTo mesh, under the given world transform | |
| bool | Build
(
const FMeshSceneAdapterBuildOptions& BuildOptions |
If possible, spatial data structure should defer construction until this function, which will be called off the game thread (in ParallelFor) | |
| void | CollectSeedPoints
(
TArray< FVector3d >& WorldPoints, |
Collect a set of seed points from this Mesh, mapped through LocalToWorldFunc to world space. | |
| double | FastWindingNumber
(
const FVector3d& P, |
Calculate the mesh winding number at the given Position. | |
| FIndex3i | GetTriangle
(
int32 TriId |
||
| int32 | |||
| FAxisAlignedBox3d | GetWorldBounds
(
TFunctionRef< FVector3d(const FVector3d&)> LocalToWorldFunc |
Calculate bounding box for this Mesh | |
| bool | HasNormals () |
||
| bool | HasUVs
(
int UVLayer |
||
| bool | IsTriangle
(
int32 TriId |
||
| bool | ProcessVerticesInWorld
(
TFunctionRef< bool(const FVector3d&)> ProcessFunc, |
Apply ProcessFunc to each vertex in world space. | |
| bool | RayIntersection
(
const FRay3d& WorldRay, |
Find the nearest ray-intersection with the mesh. Must be callable in parallel from any thread. | |
| bool | TriBaryInterpolateNormal
(
int32 TriId, |
Compute the barycentric interpolated normal for the given tri | |
| FVector3d | TriBaryInterpolatePoint
(
int32 TriId, |
Compute the barycentric interpolated normal for the given tri | |
| bool | TriBaryInterpolateUV
(
int32 TriId, |
Compute the barycentric interpolated UV for the given tri |