Ice Sheet System Model  4.18
Code documentation
Functions
Vertex.cpp File Reference
#include <string.h>
#include "classes.h"
#include "shared/shared.h"

Go to the source code of this file.

Functions

void GetVerticesCoordinates (IssmDouble *xyz, Vertex **vertices, int numvertices, bool spherical)
 

Function Documentation

◆ GetVerticesCoordinates()

void GetVerticesCoordinates ( IssmDouble xyz,
Vertex **  vertices,
int  numvertices,
bool  spherical 
)

Definition at line 225 of file Vertex.cpp.

225  { /*{{{*/
226 
227  _assert_(vertices);
228  _assert_(xyz);
229 
230  if(!spherical){
231  for(int i=0;i<numvertices;i++) {
232  xyz[i*3+0]=vertices[i]->GetX();
233  xyz[i*3+1]=vertices[i]->GetY();
234  xyz[i*3+2]=vertices[i]->GetZ();
235  }
236  }
237  else{
238  for(int i=0;i<numvertices;i++) {
239  xyz[i*3+0]=vertices[i]->GetLatitude();
240  xyz[i*3+1]=vertices[i]->GetLongitude();
241  xyz[i*3+2]=vertices[i]->GetRadius();
242  }
243  }
244 }/*}}}*/
_assert_
#define _assert_(ignore)
Definition: exceptions.h:37
Vertex::GetLongitude
IssmDouble GetLongitude(void)
Definition: Vertex.cpp:144
Vertex::GetRadius
IssmDouble GetRadius(void)
Definition: Vertex.cpp:148
gov_nasa_jpl_issm::xyz
double * xyz
Definition: Main.cpp:16
Vertex::GetY
IssmDouble GetY(void)
Definition: Vertex.cpp:156
Vertex::GetX
IssmDouble GetX(void)
Definition: Vertex.cpp:152
Vertex::GetLatitude
IssmDouble GetLatitude(void)
Definition: Vertex.cpp:140
Vertex::GetZ
IssmDouble GetZ(void)
Definition: Vertex.cpp:160