ug4
neurite_projector.cpp File Reference
#include "neurite_projector.h"
#include "common/error.h"
#include "lib_grid/global_attachments.h"
#include "lib_grid/algorithms/debug_util.h"
#include <cmath>
#include <iterator>
#include <boost/lexical_cast.hpp>

Namespaces

 ug
 the ug namespace
 

Functions

static void ug::bp_defect_and_gradient (number &defectOut, vector3 &gradientOut, const std::vector< NeuriteProjector::BPProjectionHelper > &bpList, const vector3 &x, number rad, const vector3 &constAngleSurfNormal, const NeuriteProjector *np)
 
static void ug::bp_newton_start_pos (vector3 &initOut, uint32_t neuriteID, float t, float angle, float rad, const vector3 &constAngleSurfaceNormal, const IVertexGroup *parent, const NeuriteProjector *np)
 
static bool ug::cmpQPairs (const std::pair< number, number > &a, const std::pair< number, number > &b)
 
static number ug::compute_angle (const vector3 &axis, const vector3 &secondAxis, const vector3 &thirdAxis, const vector3 &posFromAxis)
 
static void ug::compute_first_section_end_points (vector3 &pos0Out, vector3 &pos1Out, std::vector< NeuriteProjector::Section >::const_iterator secIt)
 
static void ug::compute_ONB (vector3 &firstOut, vector3 &secondOut, vector3 &thirdOut, const vector3 &firstIn, const vector3 &refDir)
 
static void ug::compute_position_and_velocity_in_section (vector3 &posAxOut, vector3 &velOut, number &radiusOut, std::vector< NeuriteProjector::Section >::const_iterator secIt, float t)
 
static void ug::compute_radius_in_section (number &radiusOut, std::vector< NeuriteProjector::Section >::const_iterator secIt, float t)
 
static void ug::newton_for_bp_projection (vector3 &posOut, const std::vector< NeuriteProjector::BPProjectionHelper > &vProjHelp, float rad, const vector3 &constAngleSurfNormal, const NeuriteProjector *np)
 
std::ostream & ug::operator<< (std::ostream &os, const NeuriteProjector::Mapping &mapping)
 
std::ostream & ug::operator<< (std::ostream &os, const NeuriteProjector::SurfaceParams &surfParams)
 
std::istream & ug::operator>> (std::istream &in, NeuriteProjector::Mapping &mapping)
 
std::istream & ug::operator>> (std::istream &in, NeuriteProjector::SurfaceParams &surfParams)
 
static void ug::pos_in_bp (vector3 &posOut, const NeuriteProjector::Neurite &neurite, uint32_t neuriteID, float &t, float &angle, float rad, std::vector< NeuriteProjector::BranchingRegion >::const_iterator &it, const IVertexGroup *parent, const NeuriteProjector *np)
 
static void ug::pos_in_neurite (vector3 &posOut, const NeuriteProjector::Neurite &neurite, size_t neuriteID, float t, float angle, float rad)
 
static void ug::pos_on_surface_tip (vector3 &posOut, const NeuriteProjector::Neurite &neurite, const IVertexGroup *parent, const NeuriteProjector *np, number rad)
 
static number ug::VecNorm (const vector3 &a)
 
static number ug::VecNormSquared (const vector3 &a)
 
static number ug::VecProd (const vector3 &a, const vector3 &b)