Development environment:
VTK-8.1.1
macOS 10.14.4
Qt 5.11.2
Clang 8.1.0

package for vtk program

use otool command tool to find all depent library files for executable.
otool -L exe
Then we can redirect all output logs into a local file and make it as a shell script file. Rewrite it and make it works.

Then we run the script file, we will get a complete program zip.

We can get the single point pointer by polydata’s points’ interface GetPoint.
It’s not supported to change point coordinate value based on the pointer.
Because it is a duplicate of the data.

double *GetPoint(vtkIdType id)
VTK_EXPECTS(0 <= id && id < GetNumberOfPoints())
{ return this->Data->GetTuple(id); }

//-----------------------------------------------------------------------------
template 
double *vtkAOSDataArrayTemplate::GetTuple(vtkIdType tupleIdx)
{
  ValueTypeT *data =
      this->Buffer->GetBuffer() + tupleIdx * this->NumberOfComponents;
  double *tuple = &this->LegacyTuple[0];
  // See note in SetTuple about std::copy vs for loops on MSVC.
  for (int i = 0; i < this->NumberOfComponents; ++i)
  {
    tuple[i] = static_cast(data[i]);
  }
  return &this->LegacyTuple[0];
}

Project code link:
FourSidesCone


0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments

Tex To PDF
: convert the Latex file which suffix is tex to a PDF file

X
0
Would love your thoughts, please comment.x
()
x