This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (C) Krzysztof Jakubowski <[email protected]> | |
// This file is part of libfwk. See license.txt for details. | |
#pragma once | |
#include "fwk/base_vector.h" | |
#include "fwk/span.h" | |
#include "fwk/sys_base.h" | |
namespace fwk { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Prosta klasa parsera | |
// Jest oznaczona EXCEPT, to znaczy, że każda funkcja z tej klasy może rzucić wyjątek | |
class EXCEPT TextParser { | |
TextParser &operator>>(double &); | |
TextParser &operator>>(bool &); | |
... | |
}; | |
struct Params { | |
string name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Prosta klasa parsera | |
// Jest oznaczona EXCEPT, to znaczy, że każda funkcja z tej klasy może rzucić wyjątek | |
class EXCEPT TextParser { | |
TextParser &operator>>(double &); | |
TextParser &operator>>(bool &); | |
... | |
}; | |
struct Params { | |
string name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include "gen_base.h" | |
#include "geom/immutable_graph.h" | |
#include "geom_base.h" | |
namespace geom { | |
// TODO: flagi (neutral jest niezależne od intersection & subtraction, addition niepotrzebne) | |
DEFINE_ENUM(CSGEdgeType, addition, intersection, subtraction, neutral); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "geom/delaunay.h" | |
#include "geom/segment_grid.h" | |
#include "geom/voronoi.h" | |
#include "small_vector.h" | |
#include <fwk/math/direction.h> | |
#include <numeric> | |
#include "instantiator.h" | |
#include "investigate.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code turns 3D mesh into hexagonal-based voxel grid | |
// Most features should be preserved (algorithm is similar to Dual Contouring) | |
// Computations are performed on rational arithmetic to make it 100% robust | |
#include "vis/voxel_map.h" | |
#include "fwk_profile.h" | |
#include "geom/plane_graph.h" | |
#include "geom/plane_graph_builder.h" | |
#include "geom/visualizer.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MTRand { | |
public: | |
typedef unsigned int u32; | |
MTRand(u32 s=5489) :p(0) { | |
for(int i=0;i<n;i++) state[i]=0; | |
seed(s); | |
} | |
void seed(u32 s) { | |
state[0] = s & 0xFFFFFFFFUL; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef VECLIB_SSE_F32_H | |
#define VECLIB_SSE_F32_H | |
#include "sse/base.h" | |
class f32x4b; | |
class f32x4bn; | |
class f32x4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copyright (C) 2013 Krzysztof Jakubowski <[email protected]> | |
This file is part of FreeFT. | |
FreeFT is free software; you can redistribute it and/or modify it under the terms of the | |
GNU General Public License as published by the Free Software Foundation; either version 2 | |
of the License, or (at your option) any later version. | |
FreeFT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without | |
even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
NewerOlder