(中文全部为谷歌翻译)

HC_EXTERNAL void HC_CDECL HC_Show_Shell HC_PROTO ((
HC_KEY, int *, HC_POINT *, int *, int *));

Returns the previous definition of a shell, as referenced by a key.

Parameters:
  key  - Unique numeric identifier pointing to a shell in the database.
  pcount  - Number of valid points in points. Returned to caller. Passed by reference always.
  points  - Vector of x-y-z triplets for the coordinates of the vertices to be used to build the shell. (A simple N x 3 array may also be used. Fortran callers should reverse the subscripts.) Returned to caller. Passed by reference always.
  flist_length  - Total number of integers in face_list. Returned to caller. Passed by reference always.
  face_list  - Encoded description of how to connect the points to build the faces of the shell. Returned to caller. Passed by reference always.

返回shell的先前定义,由键引用。
参数:
key - 指向数据库中的shell的唯一数字标识符。
pcount - 点的有效点数。 返回到调用者。 通过引用总是。
点 - 用于构建外壳的顶点坐标的x-y-z三元组矢量。 (也可以使用一个简单的N×3数组,Fortran调用者应该反转下标。)返回到调用者。 通过引用总是。
flist_length - face_list中的整数的总数。 返回到调用者。 通过引用总是。
face_list - 如何连接点以构建shell的面的编码描述。 返回到调用者。 通过引用总是。

 

HC_EXTERNAL void HC_CDECL HC_Show_Shell_Size HC_PROTO ((
HC_KEY, int *, int *));

Finds the size of a given shell. This is useful in determining the size of the data structures that must hold points and face_list.
Parameters:
  key  - Unique numeric identifier pointing to a shell in the database.
  pcount  - Number of valid points in points. Returned to caller. Passed by reference always.
  flist_length  - Total number of integers in face_list. Returned to caller. Passed by reference always.
 
查找给定shell的大小。 这在确定必须保持点和face_list的数据结构的大小时很有用。
参数:
key - 指向数据库中的shell的唯一数字标识符。
pcount - 点的有效点数。 返回到调用者。 通过引用总是。
flist_length - face_list中的整数的总数。 返回到调用者。 通过引用总是。

例子:
int a,b,c;
const int q = hc;
HC_Show_Shell_Size(q,&a,&b);

HPoint *d = new HPoint[a];
int *e = new int[b];
HC_Show_Shell(q,&a,d,&b,e);

……

……

delete []d;
delete []e;

鼠标的选择模式:

LocalSetOperator(new HOpSelectArea(m_pHView));//正常选择

LocalSetOperator(new HOpObjectTranslate(m_pHView));//移动

LocalSetOperator(new HOpObjectRotate(m_pHView));//旋转

LocalSetOperator(new HOpObjectClash(m_pHView));//检测碰撞

设置是否显示顶点

HC_Open_Segment_By_Key (m_pHView->GetSceneKey());
HC_Set_Visibility ("markers only = on");

HC_Set_Visibility ("markers only = off");
HC_Close_Segment ();

操作对象

HC_Open_Segment_By_Key(HC_KShow_Owner_By_Key (hk));
HC_Translate_Object(x,y,z);//平移

HC_Rotate_Object(x,y,z);//绕中心旋转

HC_Rotate_Object_Offaxis(x,y,z,d);//饶任意轴旋转

HC_Close_Segment();

hoops暂时用过的一些方法的更多相关文章

  1. 解决VS2019中.net core WPF 暂时无法使用 Designer 的临时方法

    目录 解决 VS2019 中.net core WPF 暂时无法使用 Designer 的临时方法 安装 vs 2019 professional/enterprise版本 在vs的设置里,勾选.NE ...

  2. “无法获得锁 /var/lib/dpkg/lock -open (11:资源暂时不可用)”的方法

    另外的ubuntu 问题 在更新的时候有时候会出现 “无法获得锁 /var/lib/dpkg/lock -open (11:资源暂时不可用)”的方法 解决办法: 在ubuntu系统的termial下, ...

  3. ubuntu 解决“无法获得锁 /var/lib/dpkg/lock -open (11:资源暂时不可用)”的方法

    原文链接:https://www.cnblogs.com/kaid/p/8616385.html 在ubuntu系统的termial下,用apt-get install 安装软件的时候,如果在未完成下 ...

  4. 【转】ubunt 安装 yum出现 ubuntu 解决“无法获得锁 /var/lib/dpkg/lock -open (11:资源暂时不可用)”的方法

    今天本来是用xshell 链接本地的linux的,然而链接的时候没有主动弹出输入 用户名和密码的对话框,google搜了下,遇到了上面的问题. 解决办法如下:1.终端输入 ps  aux ,列出进程. ...

  5. 解决vs2019中暂时无法为.net core WinForms使用 Designer 的临时方法

    目录 解决vs2019中暂时无法为.net core WinForms使用 Designer 的临时方法 安装 vs 2019 professional/enterprise版本 在vs的设置里,勾选 ...

  6. Windows下git使用代理服务器的设置方法

    在我朝独有的无敌GFW关照下(当然,也有可能IP被网站封了),要下载网络上开源的软件是非常困难的一件事情,在这种情况下,使用VPN或者代理服务器就非常有必要了.对于单个应用FQ来说,个人比较喜欢用FQ ...

  7. AJAX制作JSON格式的实时更新数据的方法

    之前有写过这样的文章,但是出现了几个问题,第一,如果每秒都像数据库发送请求势必会造成服务器的压力过大,第二,如果使用JS的话,是不可以取得系统时间的,因为JS运行在客户端,所以只能取得客户端时间, 如 ...

  8. Win7下IE8无法打开https类型的网站解决方法笔记

      现象: 一台笔记本(XP系统),一台台式机(Win7,64位系统),都是IE8,之前没任何问题,访问https也没异常,都能正常访问; 前天突然发现登录火车票网站出现无法打开登录页面情况,后来换其 ...

  9. 使用EntityFramework中DbSet.Set(Type entityType)方法碰到的问题

    使用的是EntityFramework, Version=6.0.0.0,项目原本直接使用将EntityFramework的Entity拿到UI使用,后面想使用dto对象将数据库的Entity与前台分 ...

随机推荐

  1. 如何将已部署在ASM的资源迁移到ARM中

    使用过Azure的读者都知道,Azure向客户提供了两个管理portal,一个是ASM,一个是ARM,虽然Azure官方没有宣布说淘汰ASM,两个portal可能会在很长的一段时间共存,但是考虑到AR ...

  2. C#基础:LINQ 查询函数整理

    1.LINQ 函数   1.1.查询结果过滤 :where() Enumerable.Where() 是LINQ 中使用最多的函数,大多数都要针对集合对象进行过滤,因此Where()在LINQ 的操作 ...

  3. ArrayList和HashSet的Contains()方法(转)

    来源: ArrayList和HashSet的Contains()方法 笔试题: package com.champion.test.exam; import java.util.ArrayList; ...

  4. 2. 上传Android代码到github

    1. 建立git仓库     cd到本地项目根目录,执行git命令     git init          同时会在项目根目录下生成一个.git的隐藏文件          windows下先禁用 ...

  5. 利用SQLite_Expert实现Excel表转SqLite数据库

    1.保留excel数据中需要的字段,删除无关字段. 2.将excel另存为cvs格式文件.<另存名称如:jizhan.cvs 则导入后表名即为jizhan> 3.看下图,新建数据库,命名为 ...

  6. apache如何解决跨域资源访问

    很多时候,大中型网站为了静态资源分布式部署,加快访问速度,减轻主站压力,会把静态资源(例如字体文件.图片等)放在独立服务器或者CDN上,并且使用独立的资源域名(例如res.test.com) 但是在实 ...

  7. How to Fix GNOME License Not Accepted Issue on CentOS 7

    This post assume that you have just finished the Gnome GUI installation on CentOS 7 by using “yum gr ...

  8. flask_sqlalchemy 乱码问题

    简言之, /etc/my.conf default_character_set=utf8 配置成了 default_character_set=utf-8 继而 sqlalchemy 创建表使用的字符 ...

  9. 在MonthCalendar控件中选中日期

    Calendar.MONTH Calendar now=Calendar.getInstance();System.out.print(now.get(Calendar.MONTH));得到的月份少1 ...

  10. Mybatis 拦截器

    Mybatis定义了四种拦截器: Executor (update, query, flushStatements, commit, rollback, getTransaction, close, ...