41 model =
object.object_to_world();
53 stream <<
"ObjectMatrices(" << std::endl;
54 stream <<
"model=" << matrices.
model <<
", " << std::endl;
55 stream <<
"model_inverse=" << matrices.
model_inverse <<
")" << std::endl;
68 if (
object.shadow_terminator_normal_offset == 0.0f) {
92 bool is_active_object,
93 bool is_active_edit_mode)
181 stream <<
"ObjectInfos(";
183 stream <<
"skipped)" << std::endl;
186 stream <<
"orco_add=" << infos.
orco_add <<
", ";
187 stream <<
"orco_mul=" << infos.
orco_mul <<
", ";
188 stream <<
"ob_color=" << infos.
ob_color <<
", ";
189 stream <<
"index=" << infos.
index <<
", ";
190 stream <<
"random=" << infos.
random <<
", ";
191 stream <<
"flag=" << infos.
flag <<
")" << std::endl;
236 if (inflate_bounds != 0.0f) {
238 float p = inflate_bounds;
239 float n = -inflate_bounds;
258 stream <<
"ObjectBounds(";
259 if (
bounds.bounding_sphere.w == -1.0f) {
260 stream <<
"skipped)" << std::endl;
264 stream <<
".bounding_corners[0]"
265 << *
reinterpret_cast<const float3 *
>(&
bounds.bounding_corners[0]) << std::endl;
266 stream <<
".bounding_corners[1]"
267 << *
reinterpret_cast<const float3 *
>(&
bounds.bounding_corners[1]) << std::endl;
268 stream <<
".bounding_corners[2]"
269 << *
reinterpret_cast<const float3 *
>(&
bounds.bounding_corners[2]) << std::endl;
270 stream <<
".bounding_corners[3]"
271 << *
reinterpret_cast<const float3 *
>(&
bounds.bounding_corners[3]) << std::endl;
272 stream <<
".sphere=(pos=" <<
float3(
bounds.bounding_sphere)
273 <<
", rad=" <<
bounds.bounding_sphere.w << std::endl;
274 stream <<
")" << std::endl;
General operations, lookup, etc. for blender objects.
Object is a sort of wrapper for general info.
#define BASE_SELECTED(v3d, base)
#define SET_FLAG_FROM_TEST(value, test, flag)
uint8_t get_receiver_light_set() const
uint8_t get_blocker_shadow_set() const
float random(int instance_index) const
@ OBJECT_ACTIVE_EDIT_MODE
float3 to_scale(float3x3 mat)
float reduce_max(float2 a)
std::ostream & operator<<(std::ostream &stream, const AssetCatalogPath &path_to_append)
std::array< VecBase< T, 3 >, 8 > corners(const Bounds< VecBase< T, 3 > > &bounds)
CartesianBasis invert(const CartesianBasis &basis)
T midpoint(const T &a, const T &b)
std::optional< Bounds< float3 > > BKE_volume_min_max(const Volume *volume)
MatBase< float, 4, 4 > float4x4
float shadow_terminator_normal_offset_get(const Object &object, const float4x4 &object_to_world)
void BKE_curve_texspace_ensure(Curve *cu)
VecBase< float, 4 > float4
T & DRW_object_get_data_for_drawing(const Object &object)
void BKE_mesh_texspace_get(Mesh *mesh, float r_texspace_location[3], float r_texspace_size[3])
ID_Type GS(const char *name)
std::optional< Bounds< float3 > > BKE_object_boundbox_get(const Object *ob)
VecBase< float, 3 > float3
float4 bounding_corners[4]
enum eObjectInfoFlag flag
float shadow_terminator_normal_offset
uint light_and_shadow_set_membership
float shadow_terminator_geometry_offset
void sync(const Object &object)
float texspace_location[3]
float shadow_terminator_geometry_offset
eObject_VisibilityFlag visibility_flag
float shadow_terminator_normal_offset
eObject_TransFlag transflag