没有找到合适的产品?
联系客服协助选型:023-68661681
提供3000多款全球软件/控件产品
针对软件研发的各个阶段提供专业培训与技术咨询
根据客户需求提供定制化的软件开发服务
全球知名设计软件,显著提升设计质量
打造以经营为中心,实现生产过程透明化管理
帮助企业合理产能分配,提高资源利用率
快速打造数字化生产线,实现全流程追溯
生产过程精准追溯,满足企业合规要求
以六西格玛为理论基础,实现产品质量全数字化管理
通过大屏电子看板,实现车间透明化管理
对设备进行全生命周期管理,提高设备综合利用率
实现设备数据的实时采集与监控
利用数字化技术提升油气勘探的效率和成功率
钻井计划优化、实时监控和风险评估
提供业务洞察与决策支持实现数据驱动决策
翻译|使用教程|编辑:况鱼杰|2019-08-19 14:55:27.643|阅读 787 次
概述:本系列教程整理了VectorDraw Developer Framework(VDF)最常见问题,教程整理的很齐全,非常适合新手学习,本节教程将会介绍如何排除GroundSurface对象的三角形区域。
# 界面/图表报表/文档/IDE等千款热门软控件火热销售中 >>
相关链接:
VectorDraw Developer Framework(VDF)是一个用于应用程序可视化的图形引擎库。有了VDF提供的功能,您可以轻松地创建、编辑、管理、输出、输入和打印2D和3D图形文件。
VectorDraw Developer Framework试用版下载
点开本篇文章,是否对矢量图形工具感兴趣呢?来看看最新的矢量图形工具测评吧!点击此处>>即可直达哦!
问:
如何排除GroundSurface对象的三角形区域?
答:
在6022中添加了新方法VectorDraw.Geometry.Delaunay.Triangulate和GetSliceRegionPoints of gPoints。
public static gTriangles Triangulate(gPoints points,ushort precision)
使用Delaunay算法对给定点进行三角测量。
要点:输入样本点进行三角测量。
precision:传递点的小数精度。
返回:gTriangles集合。
gPoints GetSliceRegionPoints(vdArray
返回SliceRegions中所有点的集合,区域之间的所有交叉点以及区域段与此Triangle集合之间的所有交集。
SliceRegions:区域集合。
precision:传递点的小数精度。
返回属于在此集合的三角形上投影的SliceRegions的所有点的集合。
从三角测量中排除区域的示例
//create an array of points that represent a mountain gPoints pts = new gPoints(); //add points from a 16 segments divided circle with radius 10 and elevation 50 pts += Globals.GetArcSamplePoints(16, 10, 0.0, Globals.VD_TWOPI, 50); //add points from a 32 segments divided circle with radius 20 and elevation 40 pts += Globals.GetArcSamplePoints(32, 20, 0.0, Globals.VD_TWOPI,40); //add points from a 48 segments divided circle with radius 30 and elevation 30 pts += Globals.GetArcSamplePoints(48, 30, 0.0, Globals.VD_TWOPI,30); //add points from a 64 segments divided circle with radius 40 and elevation 20 pts += Globals.GetArcSamplePoints(64, 40, 0.0, Globals.VD_TWOPI,20); //add points from a 78 segments divided circle with radius 50 and elevation 10 pts += Globals.GetArcSamplePoints(78, 50, 0.0, Globals.VD_TWOPI,10); //add a point at the top of the mountain. pts += new gPoint(0, 0, 60); //create an array of points that defines a region that will not contains triangles inside gPoints SliceRegionInside = new gPoints(new gPoint[] { new gPoint(-18, 3), new gPoint(-18, 18), new gPoint(-3, 18), new gPoint(-3, 3), new gPoint(-18, 3) }); //create an array of points that defines a region that will not contains triangles outside it. gPoints SliceRegionOutside = new gPoints(new gPoint[] { new gPoint(-35, -35), new gPoint(-35, 35), new gPoint(35, 35), new gPoint(35, -35), new gPoint(-35, -35) }); //add all the regions into a collection vdArray SliceRegions = new vdArray(new gPoints[] { SliceRegionInside, SliceRegionOutside }); ushort percision = 8; //calculate the result triangles using decimal precision 8 for passed points. gTriangles newtriangles = Delaunay.Triangulate(pts, percision); //calculate all intersection points between SliceRegions and triangles. //Z values of intersections are projected on triangles collection. gPoints intPts = newtriangles.GetSliceRegionPoints(SliceRegions, percision); //re-calculate the triangles using the basic input points and the calculated intersections. newtriangles = Delaunay.Triangulate(pts + intPts, percision); //remove the triangles according to region usage. gTriangles RemovedInsideTriangles = newtriangles.RemoveInsideTriangles(SliceRegionInside); gTriangles RemovedOutsideTriangles = newtriangles.RemoveOutsideTriangles(SliceRegionOutside); //create a new ground sourface with the calculating triangles. vdGroundSurface gf = new vdGroundSurface(); gf.SetUnRegisterDocument(doc); gf.setDocumentDefaults(); gf.Points = pts; gf.SelectUserTriangles(newtriangles); gf.DispMode = vdGroundSurface.DisplayMode.Triangle; doc.Model.Entities.AddItem(gf); doc.CommandAction.Zoom("e", null, null);
关注慧聚IT微信公众号 ☟☟☟,了解产品的最新动态及最新资讯。
本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@wqylolg.cn
文章转载自:二维码正成为越来越流行的信息存储和共享工具。在报告和文档中,二维码可用于快速访问网站、联系人、产品信息等。
本文主要介绍如何使用DevExpress WPF Grid控件的创建栏(Bands),欢迎下载最新版组件体验!
本教程将向您展示如何用MyEclipse构建一个Web项目,欢迎下载最新版IDE体验!
DeepSeek AI 现已集成到 ONLYOFFICE 编辑器中,通过先进的 AI 功能提高工作效率。在本文中,我们将探讨如何在 ONLYOFFICE 编辑器中使用可用的 DeepSeek 模型以及如何将它们连接到编辑器。
将常用工程图文件转换为新的VectorDraw格式标准,以及其他文件格式。
VectorDraw Developer Framework (All in one)面向对象的矢量图形引擎库,支持2D和3D图形,用于可视化其应用程序,无限分发授权。
VectorDraw web library (javascript)基于HTML5的矢量图引擎,100%采用Javascript编写,无客户端插件也可在浏览器中编辑你的矢量图形。
服务电话
重庆/ 023-68661681
华东/ 13452821722
华南/ 18100878085
华北/ 17347785263
客户支持
技术支持咨询服务
服务热线:400-700-1020
邮箱:sales@wqylolg.cn
关注我们
地址 : 重庆市九龙坡区火炬大道69号6幢