vtkAxisActor2D 设置单位cm/mm

  double range[2] = {0, 10.0};
  ScaleActor->SetRange(range);

 ScaleActor= vtkSmartPointer::New();
  ScaleActor->SetLabelVisibility(true);
  ScaleActor->SetLabelFormat("%g cm");  //%g
  ScaleActor->SetLabelFactor(0.5);
  ScaleActor->SetAdjustLabels(true);
  ScaleActor->SetTickOffset(10);

你可能感兴趣的:(VTK,C++,elementui,mariadb,eureka)