Trnasformation of the train coordinates

parent 50a2f7ea
Pipeline #21431 passed with stages
in 27 seconds
......@@ -187,11 +187,12 @@ void TimerCallback::Execute(vtkObject *caller, unsigned long eventId,
auto txtActor = tab.second->textActor;
auto tactor = tab.second->tubeActor;
auto tmapper = tab.second->tubeMapper;
for(auto door: doors)
trainStart = trainStart + trackStart;
trainEnd = trainEnd + trackStart;
for(auto && door: doors)
{
doorPoints.push_back(door.GetPoint1());
doorPoints.push_back(door.GetPoint2());
doorPoints.push_back(door.GetPoint1() + trainStart);
doorPoints.push_back(door.GetPoint2() + trainStart);
}//doors
if(once)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment