睿登电源外壳DIY

材料准备

  • 睿登电源面板
  • 明纬电源
  • 品字电源插座(带保险管)
  • 提手
  • 压线端子
  • 连接线
  • 3D打印机

获取尺寸 -> 设计外壳数模 -> 3D打印 -> 装机验证 -> 修正 -> 成品。

点的坐标偏移量 与 坐标系的偏移量 相反

乍一听,好像不知所云。实际上是这样的:假设空间一个点A1相对于坐标系C1的坐标数值为(1,1),将坐标系C1进行平移,沿着原坐标轴方向移动一个单位距离,即偏移量为(-1,-1),那么空间点A1相对于新的坐标系的坐标数值为(2,2)。因为点和原点是相对的,所以点是朝着原点相反方向移动的。所以(2,2)的计算方法是 (1+-(-1),1+-(-1))。

Continue reading

Qt5 相关变量

message(Qt version: $$[QT_VERSION])
message(Qt is installed in $$[QT_INSTALL_PREFIX])
message(Qt resources can be found in the following locations:)
message(Documentation: $$[QT_INSTALL_DOCS])
message(Header files: $$[QT_INSTALL_HEADERS])
message(Libraries: $$[QT_INSTALL_LIBS])
message(Binary files (executables): $$[QT_INSTALL_BINS])
message(Plugins: $$[QT_INSTALL_PLUGINS])
message(Data files: $$[QT_INSTALL_DATA])
message(Translation files: $$[QT_INSTALL_TRANSLATIONS])
message(Settings: $$[QT_INSTALL_CONFIGURATION])
message(Examples: $$[QT_INSTALL_EXAMPLES])

输出

Project MESSAGE: Qt version: 5.12.7
Project MESSAGE: Qt is installed in C:/Qt/Qt5.12.7/5.12.7/msvc2017_64
Project MESSAGE: Qt resources can be found in the following locations:
Project MESSAGE: Documentation: C:/Qt/Qt5.12.7/Docs/Qt-5.12.7
Project MESSAGE: Header files: C:/Qt/Qt5.12.7/5.12.7/msvc2017_64/include
Project MESSAGE: Libraries: C:/Qt/Qt5.12.7/5.12.7/msvc2017_64/lib
Project MESSAGE: Binary files (executables): C:/Qt/Qt5.12.7/5.12.7/msvc2017_64/bin
Project MESSAGE: Plugins: C:/Qt/Qt5.12.7/5.12.7/msvc2017_64/plugins
Project MESSAGE: Data files: C:/Qt/Qt5.12.7/5.12.7/msvc2017_64
Project MESSAGE: Translation files: C:/Qt/Qt5.12.7/5.12.7/msvc2017_64/translations
Project MESSAGE: Settings:
Project MESSAGE: Examples: C:/Qt/Qt5.12.7/Examples/Qt-5.12.7