乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 36|回复: 2

[综合讨论] Region vs. PLINE

[复制链接]

3

主题

4

帖子

1

银币

初来乍到

Rank: 1

铜币
15
发表于 2022-7-8 11:32:04 | 显示全部楼层 |阅读模式
What's the difference in making a group of joined, closed lines into a region compared to making it a polyline? I've always used region.  What are the pros and cons of each?
 
 
Thanks,
 
Jim
回复

使用道具 举报

49

主题

1246

帖子

1210

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
254
发表于 2022-7-8 12:19:34 | 显示全部楼层
I region is actually a plane that acts as a 2D "solid" in which you can apply materials/textures for rendering, etc. Regions work great for simple 3D planes that do not require a "thickness". Polyline is simply a joined connection of lines using verticies.
回复

使用道具 举报

10

主题

973

帖子

909

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
118
发表于 2022-7-8 12:40:25 | 显示全部楼层
In addition:
 
 
Polylines are CURVE objects with the ability to determine their own length and area.  Once created they remain more malleable, i.e. vertices can be stretched, can self intersect, offset as a whole, and can have different line widths from one segment to another.  LightWeightPolylines can only incorporate lines and arcs. 2d and 3d Polys do have an “all or nothing” spline capability.  
 
Regions are AREA objects.  They are always closed; though do support holes and islands.
They have the ability to determine their own area and perimeter as well as a host of other mass properties calculations.  Regions can incorporate any AutoCAD curve entitiy.  Once created, regions are pretty rigid.  They don’t natively morph, offset, or provide multiple segment width.   I do, however have a VBA routine that automates SLICEing, SCALE1Ding, and SHEAR(SKEW)ing, should that need ever arise.
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-4 11:36 , Processed in 0.384986 second(s), 58 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表