Skip to content

Commit

Permalink
Merge pull request #11 from ZeissIQS/20241011-fix-gom-vec3d
Browse files Browse the repository at this point in the history
Fix notation of gom.Vec3d
  • Loading branch information
mprinkezs authored Nov 4, 2024
2 parents 98c95c6 + eecaec8 commit 3323e42
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/python_api/scripted_elements_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ On success the function must return True, otherwise False.

```{code-block} python
result = (x,y,z)
result = gom.Vec3D
result = gom.Vec3d
```

### Distance
Expand All @@ -129,7 +129,7 @@ result = gom.Vec3D

```{code-block} python
result = { 'point1': (x,y,z), 'point2': (x,y,z) }
result = { 'point1': gom.Vec3D, 'point2': gom.Vec3D }
result = { 'point1': gom.Vec3d, 'point2': gom.Vec3d }
```

### Value Element
Expand All @@ -147,7 +147,7 @@ result = x
:Result: A center point, direction vector and radius (double)

```{code-block} python
result = { 'center' : gom.Vec3D, 'direction' : gom.Vec3D, 'radius' : double }
result = { 'center' : gom.Vec3d, 'direction' : gom.Vec3d, 'radius' : double }
```

### Curve
Expand All @@ -156,7 +156,7 @@ result = { 'center' : gom.Vec3D, 'direction' : gom.Vec3D, 'radius' : double }
:Result: A curve can be made up by an array of subcurves. Each subcurve is a polyline. A closed curve will be created, if first point = last point.

```{code-block} python
result = [ { 'points': [gom.Vec3D, gom.Vec3D, ...] } ]
result = [ { 'points': [gom.Vec3d, gom.Vec3d, ...] } ]
```

### Surface Curve
Expand All @@ -166,7 +166,7 @@ result = [ { 'points': [gom.Vec3D, gom.Vec3D, ...] } ]

% ```{code-block} python
% # This does not work!
% result = [ { 'points': [ gom.Vec3D, gom.Vec3D, ... ], 'normals': [(x,y,z)] } ]
% result = [ { 'points': [ gom.Vec3d, gom.Vec3d, ... ], 'normals': [(x,y,z)] } ]
% ```

% :::{caution}
Expand Down Expand Up @@ -202,7 +202,7 @@ result = {
:Result: A set of points. The 'normals 'attribute is optional.

```{code-block} python
result = { 'points' : [ gom.Vec3D, gom.Vec3D, ... ] , 'normals' : [ gom.Vec3D, gom.Vec3D, ... ] }
result = { 'points' : [ gom.Vec3d, gom.Vec3d, ... ] , 'normals' : [ gom.Vec3d, gom.Vec3d, ... ] }
```

### Surface
Expand Down

0 comments on commit 3323e42

Please sign in to comment.