Blender V5.3
quadric.cc File Reference
#include <cstring>
#include "BLI_math_base_c.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_quadric.hh"
#include "BLI_strict_flags.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define QUADRIC_FLT_TOT   (sizeof(Quadric) / sizeof(double))

Functions

void blender::BLI_quadric_from_plane (Quadric *q, const double v[4])
static bool blender::quadric_to_tensor_m3_inverse (const Quadric *q, double m[3][3], double epsilon)
void blender::BLI_quadric_to_vector_v3 (const Quadric *q, double v[3])
void blender::BLI_quadric_clear (Quadric *q)
void blender::BLI_quadric_add_qu_qu (Quadric *a, const Quadric *b)
void blender::BLI_quadric_add_qu_ququ (Quadric *r, const Quadric *a, const Quadric *b)
void blender::BLI_quadric_mul (Quadric *a, double scalar)
double blender::BLI_quadric_evaluate (const Quadric *q, const double v[3])
bool blender::BLI_quadric_optimize (const Quadric *q, double v[3], double epsilon)

Detailed Description

Note
This isn't fully complete, possible there are other useful functions to add here.
follow BLI_math naming convention here.
this uses doubles for internal calculations, even though input/output are floats in some cases.

This is done because the cases quadrics are useful often need high precision, see #44780.

Definition in file quadric.cc.

Macro Definition Documentation

◆ QUADRIC_FLT_TOT

#define QUADRIC_FLT_TOT   (sizeof(Quadric) / sizeof(double))