Blender V5.3
grease_pencil_boolean_test.cc File Reference
#include "testing/testing.h"
#include "MEM_guardedalloc.h"
#include "BLI_array.hh"
#include "BLI_array_utils.hh"
#include "BLI_bounds.hh"
#include "BLI_offset_indices.hh"
#include "BKE_attribute.hh"
#include "BKE_curves.hh"
#include "BKE_grease_pencil_fills.hh"
#include "BKE_gtest_base.hh"
#include "ED_grease_pencil.hh"
#include <fstream>
#include <iostream>
#include <sstream>
#include <type_traits>

Go to the source code of this file.

Classes

class  blender::ed::greasepencil::tests::SVGMapping
class  blender::ed::greasepencil::tests::GreasePencilBooleanTest

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::ed
namespace  blender::ed::greasepencil
namespace  blender::ed::greasepencil::tests

Macros

#define DO_DRAW   0

Functions

static void blender::ed::greasepencil::tests::CSS_setup_style (std::ofstream &f)
static void blender::ed::greasepencil::tests::SVG_add_path (std::ofstream &f, const std::string &class_name, const Span< float2 > &positions, const GroupedSpan< int > shapes, const IndexMask &shape_mask, const OffsetIndices< int > points_by_curve, const VArraySpan< bool > &cyclic, const SVGMapping &mapping)
static std::ofstream blender::ed::greasepencil::tests::get_file_stream ()
static void blender::ed::greasepencil::tests::draw_divider_start (const std::string &label)
static void blender::ed::greasepencil::tests::draw_divider_end ()
static float2 blender::ed::greasepencil::tests::project_fn (const float3 position)
static void blender::ed::greasepencil::tests::draw_results (const std::string &label, const std::string &type, const bke::CurvesGeometry &src_curves, const bke::CurvesGeometry &dst_curves, const IndexMask &clipping_shapes)
static bke::CurvesGeometry blender::ed::greasepencil::tests::create_test_curves (const Span< int > offsets, const Span< float2 > points, const Span< int > fill_ids, const Span< bool > cyclic)
static void blender::ed::greasepencil::tests::expect_boolean_result_coord (const bke::CurvesGeometry &dst_curves, const Array< Vector< float2 > > &expected_points)
static bke::CurvesGeometry blender::ed::greasepencil::tests::test_curve_boolean (const Operation opt, const bke::CurvesGeometry &src_curves, const Span< int > fill_ids, const IndexMask &clipping_shapes)
 blender::ed::greasepencil::tests::TEST_F (GreasePencilBooleanTest, Squares)
 blender::ed::greasepencil::tests::TEST_F (GreasePencilBooleanTest, Simple)
 blender::ed::greasepencil::tests::TEST_F (GreasePencilBooleanTest, Complex)
 blender::ed::greasepencil::tests::TEST_F (GreasePencilBooleanTest, Last_Edge_Loop)
 blender::ed::greasepencil::tests::TEST_F (GreasePencilBooleanTest, Simple_Cuts)
 blender::ed::greasepencil::tests::TEST_F (GreasePencilBooleanTest, Square_With_Hole)
 blender::ed::greasepencil::tests::TEST_F (GreasePencilBooleanTest, Squares_With_Holes)
 blender::ed::greasepencil::tests::TEST_F (GreasePencilBooleanTest, Multiple_Shapes)

Variables

static bool blender::ed::greasepencil::tests::draw_append = false

Macro Definition Documentation

◆ DO_DRAW