採用 openc++程式設計,首先使用**錄製的方法得到相應**,通過對**的分析,然後修改。可以大大減輕開發的難度。
uf_initialize();
//環境
session *thesession = session::getsession();
//建立空特徵
features::feature *nullnxopen_features_feature(null);
//建立塊,獲取工作部件
features::blockfeaturebuilder *blockfeaturebuilder1;
blockfeaturebuilder1 = workpart->features()->createblockfeaturebuilder(nullnxopen_features_feature);
//設定block引數
blockfeaturebuilder1->settype(features::blockfeaturebuilder::typesoriginandedgelengths);
point3d originpoint1(0.0, 0.0, 0.0);
blockfeaturebuilder1->setoriginandlengths(originpoint1, "30", "50", "70");
//建立
features::feature *feature1;
feature1 = blockfeaturebuilder1->commitfeature();
//染顏色
//轉換
features::bodyfeature *bodyfeatobject(dynamic_cast
(feature1)); //特徵轉換body
//顯示特徵更改
displaymodification *displaymodification1;
displaymodification1 = thesession->displaymanager()->newdisplaymodification();
displaymodification1->setnewcolor(31); //設定rgb值
vector
objects1(1); //存放body
vector
bodyarray(1);
vector
edgearray ;
vector
facearray;
if(bodyfeatobject != null)
objects1[0] = bodyarray[0];
//輸出所有線的資訊
thesession->listingwindow()->open(); //開啟資訊視窗
edge *edge1;
nxopen::edge::edgetype type;
double len;
char msg[60];
point3d p1,p2;
for(int i=0;i < edgearray.size();i++ )
//建立倒圓
feature *nullnxopen_features_feature5(null); //建立空特徵
//建立倒圓特徵,設定工作部件
edgeblendbuilder *edgeblendbuilder1;
edgeblendbuilder1 = workpart->features()->createedgeblendbuilder(nullnxopen_features_feature5);
//建立集合
nxopen::sccollector *sccollector1;
sccollector1 = workpart->sccollectors()->createcollector();
//線陣列加到
edgemultipleseedtangentrule *edgemultipleseedtangentrule1;
edgemultipleseedtangentrule1 = workpart->scrulefactory()->createruleedgemultipleseedtangent(edgearray, 0.05, true);
vector
rules1(1);
rules1[0] = edgemultipleseedtangentrule1;
sccollector1->replacerules(rules1, false);
edgeblendbuilder1->addchainset(sccollector1, "5"); //設定半徑
features::feature *feature5 = edgeblendbuilder1->commitfeature(); //建立
edgeblendbuilder1->destroy(); //釋放倒圓
blockfeaturebuilder1->destroy(); //釋放block
delete displaymodification1; //刪除特徵
uf_terminate();
Oracle建立使用者設定許可權
create user test identified by test 建立test使用者 default tablespace users temporary tablespace temp profile default grant connect,create view resource to...
linux建立使用者 設定密碼
新增使用者 useradd m 使用者名稱 然後設定密碼 passwd 使用者名稱 刪除使用者 userdel r 使用者名稱 在root許可權下,useradd只是建立了乙個使用者名稱,如 useradd 使用者名稱 它並沒有在 home目錄下建立同名資料夾,也沒有建立密碼,因此利用這個使用者登入...
GKE Cluster 建立的網路設定
在gcp上建立gke cluster不算是太難的事情。可以通過頁面的操作或者terraform來建立。這裡來分享一下其中的網路設定。一,首先需要規劃好5個網段,分別是 service cidr 暴露出來的服務從中分配乙個ip位址 vpc對應子網secondary位址二 authorized cidr...