Skip to content

Commit af687fd

Browse files
formatting
1 parent 0413344 commit af687fd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

examples/ansys/spaceclaim_tess/tesseract_api.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ def build_geometry(
109109
non_differentiable_parameters: np.ndarray,
110110
string_parameters: list[str],
111111
) -> list[trimesh.Trimesh]:
112-
"""Build a Spaceclaim geometry from the parameters by modifying template
113-
.scscript.
112+
"""Build a Spaceclaim geometry from the parameters by modifying template .scscript.
114113
115114
Return a TriangularMesh object.
116115
"""
@@ -142,8 +141,7 @@ def _prep_scscript(
142141
differentiable_plane_parameters: np.ndarray,
143142
non_differentiable_parameters: np.ndarray,
144143
) -> list[str]:
145-
"""Take tesseract inputs and place into a temp .scscript that will
146-
be used to run Spaceclaim.
144+
"""Take tesseract inputs and place into a temp .scscript that will be used to run Spaceclaim.
147145
148146
Return the Path location of this script and the output .stl
149147
"""
@@ -255,8 +253,9 @@ def run_spaceclaim(spaceclaim_exe: Path, spaceclaim_script: Path) -> None:
255253

256254

257255
def apply(inputs: InputSchema) -> OutputSchema:
258-
"""Create a Spaceclaim geometry based on input parameters and export
259-
as a .stl.
256+
"""Create a Spaceclaim geometry based on input parameters.
257+
258+
Returns TraingularMesh obj and exports a .stl.
260259
"""
261260
mesh = build_geometry(
262261
differentiable_bar_parameters=inputs.differentiable_bar_parameters,

0 commit comments

Comments
 (0)