⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cylaxisg.cpp

📁 pic 模拟程序!面向对象
💻 CPP
字号:
//cylaxisg.cpp#include "cylaxisg.h"#ifdef _MSC_VER#include <symmetry.h>#endif#include "cylindri.h"//=================== CylindricalAxisParams Classostring CylindricalAxisParams::OnAxisConstraint(){char buffer[200]; if ((k1.getValue() == 0) && (k2.getValue() == 0))  sprintf(buffer, "%s",""); else  sprintf(buffer, "cyl. axis boundary (%d, %d)- (%d, %d) is off axis",		j1.getValue(), k1.getValue(), j2.getValue(), k2.getValue()); return(ostring(buffer));}void CylindricalAxisParams::checkRules(){ BoundaryParams::checkRules(); ostring result = OnAxisConstraint(); if (strlen(result.c_str()) > 0)	 ruleMessages.add(new ostring(result)); // now check underlying rules}Boundary* CylindricalAxisParams::CreateCounterPart(){Boundary* B =  new CylindricalAxis(SP.GetLineSegments()); return B;} 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -