Sketcher ValidateSketch/zh-cn: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
 
(25 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{Docnav|[[Sketcher_Reorient|Reorient sketch ]]|[[Sketcher MergeSketches|Merge sketches]]|[[Sketcher_Workbench|Sketcher]]|IconL=|IconC=Workbench_Sketcher.svg|IconR=Sketcher MergeSketch.png‎}}


{{Docnav/zh-cn
{{GuiCommand
|[[Sketcher_ReorientSketch/zh-cn|调整草图方向]]
|Name=Sketcher ValidateSketch
|[[Sketcher_MergeSketches/zh-cn|合并草图]]
|Empty=1
|[[Sketcher_Workbench/zh-cn|Sketcher]]
|Workbenches=[[Sketcher Workbench|Sketcher]], [[PartDesign Workbench|PartDesign]]
|IconL=Sketcher_ReorientSketch.svg
|MenuLocation=Sketch / Part Design → Validate sketch…
|IconR=Sketcher MergeSketch.svg‎
|IconC=Workbench_Sketcher.svg
}}
}}


<div class="mw-translate-fuzzy">
{{GuiCommand/zh-cn
|Name=校验草图…
|MenuLocation=Sketch → Validate sketch…
|Workbenches=[[Sketcher_Workbench/zh-cn|Sketcher]], [[PartDesign_Workbench/zh-cn|PartDesign]]
|SeeAlso=[[Sketcher_ConstrainCoincident/zh-cn|重合约束]], [[Topological_naming_problem/zh-cn|Topological naming problem]]
}}
</div>

<span id="Description"></span>
==描述==
==描述==


<div class="mw-translate-fuzzy">
'''草图验证(Validate sketch)'''工具可用于修复不可编辑的草图、存在无效约束的草图,以及添加有缺失的[[Sketcher ConstrainCoincident|重合约束]]的根据DXF等文件中导入的几何图形所创建的草图。此工具也可有效的定位本地草图中缺失的重合约束,这个问题将导致在您试图运用一个PartDesign特征时生成一个"can't validate broken face"错误。
'''草图验证(Validate sketch)'''工具可用于修复不可编辑的草图、存在无效约束的草图,以及添加有缺失的[[Sketcher ConstrainCoincident|重合约束]]的根据DXF等文件中导入的几何图形所创建的草图。此工具也可有效的定位本地草图中缺失的重合约束,这个问题将导致在您试图运用一个PartDesign特征时生成一个"can't validate broken face"错误。
</div>


[[File:Sketcher_ValidateSketch_taskpanel.png|x500px]]
{{Caption|The Sketcher validation task panel}}


<span id="Usage"></span>
[[File:Sketcher validation tasks.png|left]]
==用法==
{{clear}}

==如何使用==


<div class="mw-translate-fuzzy">
# 选择待验证的草图,可以从模型树或通过单击3D视图中目标对象的一条边进行选择。'''请注意:''' 草图一定不能处于编辑模式中。如果您正处于草图编辑模式,需要[[Sketcher LeaveSketch|退出草图编辑模式]]。
# 选择待验证的草图,可以从模型树或通过单击3D视图中目标对象的一条边进行选择。'''请注意:''' 草图一定不能处于编辑模式中。如果您正处于草图编辑模式,需要[[Sketcher LeaveSketch|退出草图编辑模式]]。
# 从Sketch菜单或Part Design菜单中打开草图验证工具。
# 从Sketch菜单或Part Design菜单中打开草图验证工具。
# 执行的具体操作请参考下列[[#Options|选项]]部分。
# 执行的具体操作请参考下列[[#选项|选项]]部分。
# 完成验证后点击{{Button|Close}}按钮。
# 完成验证后点击{{Button|Close}}按钮。
</div>


<span id="Options"></span>
==选项==
==选项==


<span id="Missing_coincidences"></span>
===Missing coincidences===
===缺失重合约束===


找出有重合关系却缺失重合约束的顶点,并为之添加重合约束。按下{{Button|Find}}按钮;程序会弹出一个对话框来报告找到了多少缺失的重合约束; 并在3D视图中以黄色小十字符号表示出来。按下{{Button|OK}}来关闭此对话框,再按{{Button|Fix}}按钮来添加缺失的重合约束。
Finds out missing coincidences for overlapping vertices, and adds them. Press the {{Button|Find}} button; a pop up dialog will appear to report how many missing coincidences were found; they will be shown in the 3D view as yellow crosses. Press {{Button|OK}} to close the dialog, then press the {{Button|Fix}} button to add the missing coincidences.


如有需要,可在下拉字段中定义一个更大的公差值。
If necessary, define a larger tolerance value in the drop-down field.


Press {{Button|Highlight troublesome vertexes}} to highlight vertexes that are outside this tolerance.
Leave the "Ignore construction geometry" checkbox checked to disregard construction geometry in the analysis.


This tolerance is also used by the {{Button|Find}}/{{Button|Fix}} process.

通过选择"Ignore construction geometry"复选框在分析过程中忽略造型几何图形。

===Invalid constraints===

<div class="mw-translate-fuzzy">
===无效约束===
===无效约束===
</div>


For example, if there is a Circle-Line-Tangent constraint, but it references two lines, it is considered invalid.


(This sometimes happens due to the [[Topological_naming_problem|Topological naming problem]], i.e. the external geometry changes type).

It also does other checks, such as for empty links.

===Degenerated geometry===

Degenerated geometry can result from solver actions in a sketch.

For instance, if a line is forced to shorten to become almost a point.

Other examples: a zero length line or zero radius circle/arc.

===Reversed external geometry===

<div class="mw-translate-fuzzy">
===逆向外部几何图形===
===逆向外部几何图形===
</div>


This process might be helpful if sketches with external-geometry fail to solve because of these changes.


===Constraint orientation locking===
===Constraint orientation locking===


<div class="mw-translate-fuzzy">
===约束方向锁定===
</div>


Internally they work by constraining the angle between tangent vectors. With tangent constraint for example, the angle can be 0 or 180 degrees (co-directed or opposed vectors). The actual angle is remembered in the constraint data ("constraint orientation is locked"), it guards against flipping. But the angle can be erased ("constraint orientation unlock") or updated; these tools do exactly that.
{{Docnav|[[Sketcher_Reorient|Reorient sketch ]]|[[Sketcher MergeSketches|Merge sketches]]|[[Sketcher_Workbench|Sketcher]]|IconL=|IconC=Workbench_Sketcher.svg|IconR=Sketcher MergeSketch.png‎}}


The locking mechanism typically works well and this tool should not be needed. '''It should only used after making a backup of the open document.'''
{{Sketcher Tools navi}}



{{Userdocnavi}}
{{Docnav/zh-cn
|[[Sketcher_ReorientSketch/zh-cn|调整草图方向]]
|[[Sketcher_MergeSketches/zh-cn|合并草图]]
|[[Sketcher_Workbench/zh-cn|Sketcher]]
|IconL=Sketcher_ReorientSketch.svg
|IconR=Sketcher MergeSketch.svg‎
|IconC=Workbench_Sketcher.svg
}}

{{Sketcher Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 11:15, 27 March 2024

校验草图…

菜单位置
Sketch → Validate sketch…
所属工作台
Sketcher, PartDesign
默认快捷键
沒有
版本介紹
-
参阅
重合约束, Topological naming problem

描述

草图验证(Validate sketch)工具可用于修复不可编辑的草图、存在无效约束的草图,以及添加有缺失的重合约束的根据DXF等文件中导入的几何图形所创建的草图。此工具也可有效的定位本地草图中缺失的重合约束,这个问题将导致在您试图运用一个PartDesign特征时生成一个"can't validate broken face"错误。

The Sketcher validation task panel

用法

  1. 选择待验证的草图,可以从模型树或通过单击3D视图中目标对象的一条边进行选择。请注意: 草图一定不能处于编辑模式中。如果您正处于草图编辑模式,需要退出草图编辑模式
  2. 从Sketch菜单或Part Design菜单中打开草图验证工具。
  3. 执行的具体操作请参考下列选项部分。
  4. 完成验证后点击Close按钮。

选项

缺失重合约束

找出有重合关系却缺失重合约束的顶点,并为之添加重合约束。按下Find按钮;程序会弹出一个对话框来报告找到了多少缺失的重合约束; 并在3D视图中以黄色小十字符号表示出来。按下OK来关闭此对话框,再按Fix按钮来添加缺失的重合约束。

如有需要,可在下拉字段中定义一个更大的公差值。

Press Highlight troublesome vertexes to highlight vertexes that are outside this tolerance.

This tolerance is also used by the Find/Fix process.

通过选择"Ignore construction geometry"复选框在分析过程中忽略造型几何图形。

Invalid constraints

无效约束

For example, if there is a Circle-Line-Tangent constraint, but it references two lines, it is considered invalid.

(This sometimes happens due to the Topological naming problem, i.e. the external geometry changes type).

It also does other checks, such as for empty links.

Degenerated geometry

Degenerated geometry can result from solver actions in a sketch.

For instance, if a line is forced to shorten to become almost a point.

Other examples: a zero length line or zero radius circle/arc.

Reversed external geometry

逆向外部几何图形

This process might be helpful if sketches with external-geometry fail to solve because of these changes.

Constraint orientation locking

约束方向锁定

Internally they work by constraining the angle between tangent vectors. With tangent constraint for example, the angle can be 0 or 180 degrees (co-directed or opposed vectors). The actual angle is remembered in the constraint data ("constraint orientation is locked"), it guards against flipping. But the angle can be erased ("constraint orientation unlock") or updated; these tools do exactly that.

The locking mechanism typically works well and this tool should not be needed. It should only used after making a backup of the open document.