使用模型空间坐标
我正在使用Forge查看器,并且难以获得模型空间坐标系统而不是纸张空间。我有一个建筑平面图,可以得到东西的坐标,但它们都像3.5、4.6等。它们将在8.5x11的纸内,所以我认为这是纸坐标。我真的需要模型坐标,应该更像56、75、152等。(假设它是脚)。我已经尝试寻找不同的可供Viewables,但似乎总是是纸张空间。这是我加载文档的代码:
viewer?.loadDocumentNode(doc, doc.getRoot().getDefaultGeometry()).then(e => {
console.log(e);
if (viewerReady) {
viewerReady(viewer!);
}
});
这有效,但我得到了纸质坐标。我确实仔细查看了可见的名称,该名称是默认值,它是“模型”,所以对我来说这似乎是模型空间,但坐标似乎并非如此。我也确实打开了源学院图,并确认在模型空间中,坐标是正确的(一个测试为345英尺等)。
这是我在文档中某个地方看到的东西吗?有某种类型的缩放吗?还是我需要设置的转换中某种类型的参数?如何获得“真实”坐标?
I'm using the Forge Viewer and I'm having trouble getting the model space coordinate system instead of paper space. I have a building floor plan in view and I can get the coordinates of things but they are all like 3.5, 4.6, etc. that would be within an 8.5x11 piece of paper so I would assume that's paper coordinates. I really need model coordinates that should be more like 56, 75, 152, etc. (assuming it's feet). I've tried looking for different viewables but it always seems to be paper space. Here is my code to load a document:
viewer?.loadDocumentNode(doc, doc.getRoot().getDefaultGeometry()).then(e => {
console.log(e);
if (viewerReady) {
viewerReady(viewer!);
}
});
This works but I get the paper coordinates. I did look through the name of the viewable that comes back as default and it's 'Model' so that seems like it's model space to me but the coordinates don't seem to be. I did also open the source ACAD drawing and confirmed that in model space the coordinates are correct (one test was 345ft, etc.).
Is this something I can see in the document somewhere? Is there a scaling of some type? Or a parameter of some type in the conversion that I need to set? How do I get the 'real' coordinates?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 2D 绘图时,您应该能够在模型的元数据中找到此信息:
When working with 2D drawings, you should be able to find this information in the model's metadata: