OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Utils.cpp File Reference
#include "Utils.hpp"
#include <assert.h>
#include <cmath>
#include "../include/Types.hpp"
#include <vector>
#include <cstdint>
Include dependency graph for Utils.cpp:

Go to the source code of this file.

Namespaces

namespace  libvgcode
 |/ Copyright (c) Prusa Research 2023 Enrico Turri @enricoturri1966, Pavel Mikuš @Godrak |/ |/ libvgcode is released under the terms of the AGPLv3 or higher |/

Functions

void libvgcode::add_vertex (const Vec3 &position, const Vec3 &normal, std::vector< float > &vertices)
void libvgcode::add_triangle (uint16_t v1, uint16_t v2, uint16_t v3, std::vector< uint16_t > &indices)
Vec3 libvgcode::normalize (const Vec3 &v)
float libvgcode::dot (const Vec3 &v1, const Vec3 &v2)
float libvgcode::length (const Vec3 &v)
bool libvgcode::operator== (const Vec3 &v1, const Vec3 &v2)
bool libvgcode::operator!= (const Vec3 &v1, const Vec3 &v2)
Vec3 libvgcode::operator+ (const Vec3 &v1, const Vec3 &v2)
Vec3 libvgcode::operator- (const Vec3 &v1, const Vec3 &v2)
Vec3 libvgcode::operator* (float f, const Vec3 &v)