source: cpp/frams/genetics/fF/fF_chamber3d.cpp @ 174

Last change on this file since 174 was 174, checked in by oriona, 6 years ago

Chambers in Foraminifera grow so that the length of the local communication path is minimal

File size: 929 bytes
Line 
1// This file is a part of the Framsticks GDK.
2// Copyright (C) 2002-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
3// Refer to http://www.framsticks.com/ for further information.
4#include "fF_chamber3d.h"
5#include "conv_fF.h"
6#include <iostream>
7
8fF_chamber3d::~fF_chamber3d()
9{
10    for (int i = 0; i < SIZE; i++){
11        delete []points[i];
12    }
13    delete []points;
14}   
15
16fF_chamber3d::fF_chamber3d(float centerX, float centerY, float centerZ,
17float radius, float holeX, float holeY, float holeZ,
18float vectorTfX, float vectorTfY, float vectorTfZ, float beta, float phi)
19{
20        points = NULL;
21        this->centerX = centerX;
22        this->centerY = centerY;
23        this->centerZ = centerZ;
24        this->radius = radius;
25        this->holeX = holeX;
26        this->holeY = holeY;
27        this->holeZ = holeZ;
28        this->vectorTfX = vectorTfX;
29        this->vectorTfY = vectorTfY;
30        this->vectorTfZ = vectorTfZ;
31        this->beta = beta;
32        this->phi = phi;                       
33}
Note: See TracBrowser for help on using the repository browser.