public int apply_cb()
{
int errorCode = 0;
try
{
//---- Enter your callback code here -----
TaggedObject[] curves = edge_select0.GetSelectedObjects();
Vector3d vec = vector0.Vector;
double distance = double0.Value;
//Session theSession = Session.GetSession();
Part workPart = theSession.Parts.Work;
NXOpen.Features.OffsetCurveBuilder offsetCurveBuilder1 = workPart.Features.CreateOffsetCurveBuilder(null);
Direction direction1 = workPart.Directions.CreateDirection(new Point3d(0, 0, 0), vec, SmartObject.UpdateOption.WithinModeling);
//设置曲线偏置方向
offsetCurveBuilder1.AxialOffsetDirection = direction1;
//判断选择类型
List<SelectionIntentRule> eList = new List<SelectionIntentRule>();
NXObject seed = null;
fo
创建曲线偏置根据指定矢量
最新推荐文章于 2024-07-10 15:05:25 发布
本文详细介绍了如何根据指定的矢量偏置曲线,涵盖了关键步骤和数学原理,为三维建模和图形设计提供了实用的技术指导。
摘要由CSDN通过智能技术生成