1rtcSetGeometryTransform(3)Embree Ray Tracing Kernels 3rtcSetGeometryTransform(3)
2
3
4
5 NAME
6 rtcSetGeometryTransform - sets the transformation for a particular
7 time step of an instance geometry
8
9 SYNOPSIS
10 #include <embree3/rtcore.h>
11
12 void rtcSetGeometryTransform(
13 RTCGeometry geometry,
14 unsigned int timeStep,
15 enum RTCFormat format,
16 const float* xfm
17 );
18
19 DESCRIPTION
20 The rtcSetGeometryTransform function sets the local-to-world affine
21 transformation (xfm parameter) of an instance geometry (geometry param‐
22 eter) for a particular time step (timeStep parameter). The transforma‐
23 tion is specified as a 3×4 matrix (3×3 linear transformation plus
24 translation), for which the following formats (format parameter) are
25 supported:
26
27 • RTC_FORMAT_FLOAT3X4_ROW_MAJOR: The 3×4 float matrix is laid out in
28 row-major form.
29
30 • RTC_FORMAT_FLOAT3X4_COLUMN_MAJOR: The 3×4 float matrix is laid out in
31 column-major form.
32
33 • RTC_FORMAT_FLOAT4X4_COLUMN_MAJOR: The 3×4 float matrix is laid out in
34 column-major form as a 4×4 homogeneous matrix with the last row being
35 equal to (0, 0, 0, 1).
36
37 EXIT STATUS
38 On failure an error code is set that can be queried using rtcGetDe‐
39 viceError.
40
41 SEE ALSO
42 [RTC_GEOMETRY_TYPE_INSTANCE]
43
44
45
46 rtcSetGeometryTransform(3)