Repository navigation
Conversation
代理图形:新增厂商无关的通用解码器 src/Import/ProxyGraphics.h(命名空间 MiniCAD::Proxy)。只解记录流、不看对象类名,天正 / 斯维尔 / 浩辰等自定义实体 共用;TchProxyGraphics.h 改为薄封装,只做类型别名与转发。容错按「能解多少算 多少」:不认识的记录、数值不合理的记录只跳过该条(Skipped 计数),坐标超出 |v| < 1e12 的图元丢弃(Discarded 计数),避免脏数据把包围盒撑到 1e70。 天正对象: - 新增老虎窗 TCH_DORMER(明文 / 加密两个家族;平面朝向取屋面法向在 XY 的方位角) - 新增房间 TCH_SPACE、曲面网格 TCH_CURVEMESH2 - 墙体:T20 V2~V7 的 rc8 9/10/11 解密与字段顺序;版本 11 几何后多 4 字节标记; 旧版 T5/T6/T7(基类 2/3/4)的明文 BD 几何 - 老类 TCH_DIMENSION 复用 DecodeDimension;半径 / 直径标注按 Flags 0x10 区分, 直径画穿心双箭头并写 ⌀ - 坐标标注 TCH_COORD 版本 1 补默认引线(4.2894 / 4.5069 倍字高) - 箭头 / 矩形楼梯旧版字段子集;索引符号 TCH_INDEXPOINTER 内联文字分支 - T20 基类 6/7/8、文字类版本 3 句柄流、指北针全零尾部 工具:tools/tch_versions_check.ps1 批量核对一组不同天正版本另存的同一张图。
上游 b84cbcf 在 EntityColor::DrawRgba 里用 �uto near = ... 做局部 lambda, windows.h 定义了同名的 near 宏,apps/Win32 的翻译单元包含 windows.h 后该行被 展开成语法错误(C2513「在 = 前没有声明变量」)。核心库不包含 windows.h 所以没暴露。 改名为 isClose。
CHMOSE023
added a commit
that referenced
this pull request
Nov 8, 2026
整理自 PR #39(只合代码,不带该 PR 的注释、本机核对脚本与真实图纸数据): - TCH基类版本 6~8(T20 各版):句柄个数偏移、版本 8 的内联 GUID; 组合门窗子门窗与表格也传 data - 墙受保护几何类版本 9 / 11、旧版墙(基类 2~4)的明文几何 - 坐标标注、箭头、矩形楼梯、索引符号按类版本分支;指北针接受 2004 格式与全 0 尾部;加密文字类版本 3;旧类 TCH_DIMENSION;直径标注 - 新增 TCH_DORMER、TCH_SPACE、TCH_CURVEMESH2(代理图形为空,按私有数据解) - 代理图形解码改名为 Proxy::Decode(src/Import/ProxyGraphics.h), Tch::DecodeProxyGraphics 保留为转发;行为与 main 相同,未采纳该 PR 对裁剪 / 变换记录、颜色字节序、记录 33 的改写,测试保留并补一条 坐标量级超限的用例 Co-Authored-By: 深悟空 <wkslgjx@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
感谢贡献!已整理后合入 main:ce4324e。 已合入(只合代码,没带新加的注释):
没有合入:
另外,文档里提到「测试程序里直接 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.