MCPcopy Create free account
hub / github.com/CadQuery/cadquery / positionAt

Method positionAt

cadquery/occ_impl/shapes.py:3346–3358  ·  view source on GitHub ↗

Computes the position vector at the desired location in the u,v parameter space. :returns: a vector representing the position :param u: the u parametric location to compute the normal at. :param v: the v parametric location to compute the normal at.

(self, u: Real, v: Real)

Source from the content-addressed store, hash-verified

3344 return us, vs
3345
3346 def positionAt(self, u: Real, v: Real) -> Vector:
3347 """
3348 Computes the position vector at the desired location in the u,v parameter space.
3349
3350 :returns: a vector representing the position
3351 :param u: the u parametric location to compute the normal at.
3352 :param v: the v parametric location to compute the normal at.
3353 """
3354 p = gp_Pnt()
3355 vn = gp_Vec()
3356 BRepGProp_Face(self.wrapped).Normal(u, v, p, vn)
3357
3358 return Vector(p)
3359
3360 def locationAt(self, u: Real, v: Real) -> Location:
3361 """

Callers 15

solveMethod · 0.45
test_approximate2DFunction · 0.45
test_curve_positionFunction · 0.45
torus_faceFunction · 0.45
test_surface_positionsFunction · 0.45
test_isolinesFunction · 0.45
test_constraint_solverFunction · 0.45
test_face_positionAtFunction · 0.45
test_edge_paramsFunction · 0.45

Calls 1

VectorClass · 0.85

Tested by 15

test_approximate2DFunction · 0.36
test_curve_positionFunction · 0.36
torus_faceFunction · 0.36
test_surface_positionsFunction · 0.36
test_isolinesFunction · 0.36
test_constraint_solverFunction · 0.36
test_face_positionAtFunction · 0.36
test_edge_paramsFunction · 0.36