52 lines
1.5 KiB
C++
52 lines
1.5 KiB
C++
|
|
|
|
// DO NOT EDIT !
|
|
// This file is generated using the MantaFlow preprocessor (prep generate).
|
|
|
|
/******************************************************************************
|
|
*
|
|
* MantaFlow fluid solver framework
|
|
* Copyright 2011 Tobias Pfaff, Nils Thuerey
|
|
*
|
|
* This program is free software, distributed under the terms of the
|
|
* Apache License, Version 2.0
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Mesh edge collapse and subdivision
|
|
*
|
|
******************************************************************************/
|
|
|
|
/******************************************************************************/
|
|
// Copyright note:
|
|
//
|
|
// These functions (C) Chris Wojtan
|
|
// Long-term goal is to unify with his split&merge codebase
|
|
//
|
|
/******************************************************************************/
|
|
|
|
#ifndef _EDGECOLLAPSE_H
|
|
#define _EDGECOLLAPSE_H
|
|
|
|
#include "mesh.h"
|
|
|
|
namespace Manta {
|
|
|
|
void CollapseEdge(Mesh &mesh,
|
|
const int trinum,
|
|
const int which,
|
|
const Vec3 &edgevect,
|
|
const Vec3 &endpoint,
|
|
std::vector<int> &deletedNodes,
|
|
std::map<int, bool> &taintedTris,
|
|
int &numCollapses,
|
|
bool doTubeCutting);
|
|
|
|
Vec3 ModifiedButterflySubdivision(Mesh &mesh,
|
|
const Corner &ca,
|
|
const Corner &cb,
|
|
const Vec3 &fallback);
|
|
|
|
} // namespace Manta
|
|
|
|
#endif
|