本文整理汇总了Python中Wrappers.pointAtParameterList方法的典型用法代码示例。如果您正苦于以下问题:Python Wrappers.pointAtParameterList方法的具体用法?Python Wrappers.pointAtParameterList怎么用?Python Wrappers.pointAtParameterList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Wrappers
的用法示例。
在下文中一共展示了Wrappers.pointAtParameterList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import Wrappers [as 别名]
# 或者: from Wrappers import pointAtParameterList [as 别名]
def __init__(self,edge,p1,p2,type):
"edge is a ref to an edge, with the beginning and ending parameters"
"for the underlying curve"
self.edge = edge;
self.p1 = p1;
self.p2 = p2;
self.type =type;
#todo, this can be optimized, the underlying curve is computed twice here.
[self.firstPoint, self.lastPoint] = Wrappers.pointAtParameterList(edge, [self.p1,self.p2] );
示例2: __init__
# 需要导入模块: import Wrappers [as 别名]
# 或者: from Wrappers import pointAtParameterList [as 别名]
def __init__(self, edge, p1, p2, type):
"edge is a ref to an edge, with the beginning and ending parameters"
"for the underlying curve"
self.edge = edge
self.p1 = p1
self.p2 = p2
self.type = type
self.hash = self.edge.__hash__()
# precompute to save time
self.myKey = (self.hash, self.p1, self.p2)
# todo, this can be optimized, the underlying curve is computed twice here.
[self.firstPoint, self.lastPoint] = Wrappers.pointAtParameterList(edge, [self.p1, self.p2])
示例3: addSingleBoundaryEdge
# 需要导入模块: import Wrappers [as 别名]
# 或者: from Wrappers import pointAtParameterList [as 别名]
def addSingleBoundaryEdge(self,edge):
(f,l) = brepTool.Range(edge);
(firstPoint, lastPoint) = Wrappers.pointAtParameterList(edge, [f,l] );
self.addPointOnBoundaryEdge(edge,f,firstPoint);
self.addPointOnBoundaryEdge(edge,l,lastPoint);