Changeset 1130 for cpp/frams/_demos/printconvmap.cpp
- Timestamp:
- 04/16/21 15:55:34 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/printconvmap.cpp
r973 r1130 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 0Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2021 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 88 88 :model(m) 89 89 { 90 joint_offset = max(10, (int(9 + model.getPartCount()) / 10) * 10);91 neuron_offset = joint_offset + max(10, (int(9 + model.getJointCount()) / 10) * 10);92 max_element = neuron_offset + max(10, (int(9 + model.getNeuroCount()) / 10) * 10);90 joint_offset = std::max(10, (int(9 + model.getPartCount()) / 10) * 10); 91 neuron_offset = joint_offset + std::max(10, (int(9 + model.getJointCount()) / 10) * 10); 92 max_element = neuron_offset + std::max(10, (int(9 + model.getNeuroCount()) / 10) * 10); 93 93 for (int i = 0; i < model.getPartCount(); i++) 94 94 map.add(Model::partToMap(i), Model::partToMap(i), i, i);
Note: See TracChangeset
for help on using the changeset viewer.