|
NX Open C++ 参考指南 2406 v1.1
|
截面对象集合 更多...
#include <SectionCollection.hxx>
类 | |
| class | iterator |
Public 类型 | |
| enum | LoopOption { LoopOptionSeparate , LoopOptionSeparateOuter } |
Public 成员函数 | |
| iterator | begin () |
| NXOpen::Section * | CreateSection () |
| NXOpen::Section * | CreateSection (double chainingTolerance, double distanceTolerance, double angleTolerance) |
| NXOpen::Section * | CreateSection (NXOpen::NXObject *curve) |
| void | CreateSectionsUsingCurves (const std::vector< NXOpen::NXObject * > &curves, NXOpen::SectionCollection::LoopOption loopOption, double chainingTolerance, double distanceTolerance, double angleTolerance, std::vector< NXOpen::Section * > §ion) |
| iterator | end () |
| tag_t | Tag () const |
截面对象集合
此类包含用于创建截面的工厂方法。
要获取此类的实例,请参考NXOpen::BasePart
在NX3.0.0版本创建。
定义SectionCollection::CreateSectionsUsingCurves中截面的创建方式
| 枚举值 | |
|---|---|
| LoopOptionSeparate | 每个环创建一个截面 |
| LoopOptionSeparateOuter | 每个外环及包含的内环创建一个截面 |
| iterator NXOpen::SectionCollection::begin | ( | ) |
返回指向第一个元素的迭代器。
| NXOpen::Section * NXOpen::SectionCollection::CreateSection | ( | ) |
使用默认的链选、距离和角度公差创建截面。
应为截面添加选择意图规则。
有关详细信息,请参阅 Section::AddToSection 的文档。
可从截面中移除选择意图规则或单个截面元素。
有关详细信息,请参阅 Section::RemoveRules 和 Section::RemoveSingleSectionElement 的文档。
| NXOpen::Section * NXOpen::SectionCollection::CreateSection | ( | double | chainingTolerance, |
| double | distanceTolerance, | ||
| double | angleTolerance ) |
创建一个截面。
应为截面添加选择意图规则。
有关详细信息,请参阅 Section::AddToSection 的文档。
可从截面中移除选择意图规则或单个截面元素。
有关详细信息,请参阅 Section::RemoveRules 和 Section::RemoveSingleSectionElement 的文档。
| chainingTolerance | 链选公差 |
| distanceTolerance | 距离公差 |
| angleTolerance | 角度公差 |
| NXOpen::Section * NXOpen::SectionCollection::CreateSection | ( | NXOpen::NXObject * | curve | ) |
使用给定的曲线、边或点,通过单曲线规则创建截面。
| curve | 曲线、边或点 |
| void NXOpen::SectionCollection::CreateSectionsUsingCurves | ( | const std::vector< NXOpen::NXObject * > & | curves, |
| NXOpen::SectionCollection::LoopOption | loopOption, | ||
| double | chainingTolerance, | ||
| double | distanceTolerance, | ||
| double | angleTolerance, | ||
| std::vector< NXOpen::Section * > & | section ) |
使用曲线创建截面,每个截面可通过拉伸生成一个体。
首先将曲线排序为环,然后将环分为外环和内环。 为每个曲线外环创建一个截面,并根据环选项包含该外环所包围的闭合环。
输入必须全部为曲线,且曲线必须位于同一平面上。
版本:NX4.0.4。
许可要求:gateway ("UG GATEWAY")
| curves | 曲线 |
| loopOption | 环选项 |
| chainingTolerance | 链选公差 |
| distanceTolerance | 距离公差 |
| angleTolerance | 角度公差 |
| section | 截面 |
|
inline |
返回指向最后一个元素之后位置的迭代器。
| tag_t NXOpen::SectionCollection::Tag | ( | ) | const |
返回此对象的标识。