当前位置: 首页 > news >正文

做的网站不能放视频软件使用微信推广的各种方法

做的网站不能放视频软件,使用微信推广的各种方法,菏泽正耀网站建设公司怎么样,汽车网站建设价格类DL_Extrusion DL_Extrusion 是 DXF 库中的一个类#xff0c;用于表示三维实体的扩展信息。在 DXF 文件中#xff0c;DL_Extrusion 类通常用于表示具有高度的三维图形实体#xff0c;如立方体、圆柱体等#xff0c;以及其它具有体积的几何对象。 以下是一个简单的示例代…类DL_Extrusion DL_Extrusion 是 DXF 库中的一个类用于表示三维实体的扩展信息。在 DXF 文件中DL_Extrusion 类通常用于表示具有高度的三维图形实体如立方体、圆柱体等以及其它具有体积的几何对象。 以下是一个简单的示例代码展示了如何使用 DL_Extrusion 类来创建一个简单的三维实体并将其写入 DXF 文件 #include iostream #include dl_creationadapter.h #include dl_dxf.h #include dl_writerascii.hclass MyExtrusion : public DL_CreationAdapter { public:void addExtrusion() {DL_ExtrusionData data;data.basePoint.set(0.0, 0.0, 0.0);data.axis.set(0.0, 0.0, 1.0);data.length 10.0;data.angle 0.0;data.radius 2.0;addExtrusion(data);}void addExtrusion(const DL_ExtrusionData data) {addExtrusion(data.basePoint.x, data.basePoint.y, data.basePoint.z,data.axis.x, data.axis.y, data.axis.z,data.length, data.angle, data.radius);}void addExtrusion(double x, double y, double z,double nx, double ny, double nz,double length, double angle, double radius) {DL_Extrusion extrusion(x, y, z, nx, ny, nz, length, angle, radius);addEntity(extrusion);} };int main() {DL_Dxf dxf;MyExtrusion creationAdapter;creationAdapter.addExtrusion();dxf.write(output.dxf, creationAdapter);std::cout DXF 文件已生成。 std::endl;return 0; }在上面的示例中我们定义了一个名为 MyExtrusion 的类继承自 DL_CreationAdapter。在 addExtrusion 方法中我们创建了一个 DL_ExtrusionData 对象设置了基本点、轴向、长度、角度和半径等参数并调用 addExtrusion 方法添加了一个 Extrusion 实体。然后在 main 函数中我们创建了一个 DXF 对象调用 write 方法将添加的实体写入 DXF 文件中。 请注意以上示例仅用于演示目的实际使用时需要根据您的需求和 DXF 库的具体接口进行调整。 方法setElevation  在 DXF 库中的 DL_Extrusion 类中setElevation 方法通常用于设置或更改 Extrusion 实体的高度或海拔值。在三维空间中高度通常表示对象在 z 轴上的位置即垂直于 XY 平面的距离。通过调用 setElevation 方法您可以指定 Extrusion 实体在 z 轴上的位置从而改变其在三维空间中的位置。 以下是一个简单的伪代码示例展示了如何使用 setElevation 方法来设置 Extrusion 实体的高度 DL_Extrusion extrusion; double elevation 5.0; // 设置高度为 5.0extrusion.setElevation(elevation);在上面的示例中我们创建了一个名为 extrusion 的 DL_Extrusion 对象并将高度值设置为 5.0然后调用 setElevation 方法将这个高度值应用到 Extrusion 实体上。这样实体的位置就会相应地在 z 轴上移动 5 个单位距禿 请注意setElevation 方法的确切用法可能会根据您所使用的 DXF 库的 API 设计略有不同具体取决于库的实现方式和参数设置。 老版库头文件实现 /**************************************************************************** ** Copyright (C) 2001-2013 RibbonSoft, GmbH. All rights reserved. ** ** This file is part of the dxflib project. ** ** This file is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation; either version 2 of the License, or ** (at your option) any later version. ** ** Licensees holding valid dxflib Professional Edition licenses may use ** this file in accordance with the dxflib Commercial License ** Agreement provided with the Software. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.ribbonsoft.com for further details. ** ** Contact inforibbonsoft.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/#ifndef DL_EXTRUSION_H #define DL_EXTRUSION_H#include dl_global.h#include math.h/*** Extrusion direction.** author Andrew Mustun*/ class DXFLIB_EXPORT DL_Extrusion { public:/*** Default constructor.*/DL_Extrusion(){direction new double[3];setDirection( 0.0, 0.0, 1.0 );setElevation( 0.0 );}/*** Destructor.*/~DL_Extrusion(){delete[] direction;}/*** Constructor for DXF extrusion.** param direction Vector of axis along which the entity shall be extruded* this is also the Z axis of the Entity coordinate system* param elevation Distance of the entities XY plane from the origin of the* world coordinate system*/DL_Extrusion( double adx, double ady, double adz, double aelevation ){direction new double[3];setDirection( adx, ady, adz );setElevation( aelevation );}/*** Sets the direction vector.*/void setDirection( double dx, double dy, double dz ){direction[0] dx;direction[1] dy;direction[2] dz;}/*** return direction vector.*/double* getDirection() const{return direction;}/*** return direction vector.*/void getDirection( double dir[] ) const{dir[0] direction[0];dir[1] direction[1];dir[2] direction[2];}/*** Sets the elevation.*/void setElevation( double aelevation ){this-elevation aelevation;}/*** return Elevation.*/double getElevation() const{return elevation;}/*** Copies extrusion (deep copies) from another extrusion object.*/DL_Extrusion operator ( const DL_Extrusion extru ){setDirection( extru.direction[0], extru.direction[1], extru.direction[2] );setElevation( extru.elevation );return *this;}private:double* direction;double elevation; };#endif
http://www.hkea.cn/news/14426853/

相关文章:

  • seo建设网站手机与pc的网站开发
  • apache新建网站wordpress 熊掌号代码
  • 绍兴网站网站建设青海网页设计与网站建设
  • 自己的网站怎么做砍价网站建设中 网页代码
  • 建立网站怎么赚钱wordpress 肖
  • 北京网站开发公司一网天行网站建设与网页设计 视频教程
  • 昆明如何做百度的网站江西建设工程信息网
  • 青岛建网站做网站设计要注意什么问题
  • 石家庄建立网站的公司阿里网站制作需要多少钱
  • 安全的网站建设服务火车头采集器wordpress
  • 广州网站建设市场从零开始学手机网站开发教程
  • 左右翻网站模版wordpress 删除 下载文件
  • 福建建设执业资格注册管理中心网站保定公司网站建设
  • WordPress迁移网站打不开抖音代运营大概多少钱一个月
  • 自己做网站网站资源哪里来中学加强校园网站建设
  • vps搭建网站学校网站建设企业
  • 网站怎样建设才叫人性化免费做网站通栏广告
  • 自己怎么做淘宝网站中国建设官方网
  • 渭南企业网站建设wordpress more标签使用教程
  • 58同城网网站建设网站关键词排名消失
  • 2014最新网站模板-网页模板免费下载-风格吧珠海网站制作案例
  • 建筑设计人才招聘网站快速建站完整版
  • 网站建设昆明网络公司seo入门书籍推荐
  • 惠州做网站 百度优化网站优缺点分析
  • 天美影像传媒有限公司招聘广州seo外包公司
  • 制作一个网站数据库怎么做长沙网站建设与维护
  • 实名网站空间有经验的合肥网站建设
  • 网站记录ip 修改摄影作品网站app十大排名
  • 郑州路普科技惠州seo网站排名
  • 网站地图代码江苏网站建设方案