You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a translate for the bodies and components (ie body.translate) but none for faces or edges. Faces or edges can be moved using move_translate but that only takes name selections as the argument. It
import os
import sys
import math
import numpy as np
from pint import Quantity
from pyvista.plotting import system_supports_plotting
from ansys.geometry.core import *
from ansys.geometry.core.connection import *
from ansys.geometry.core.designer import *
from ansys.geometry.core.materials import *
from ansys.geometry.core.math import *
from ansys.geometry.core.misc import *
from ansys.geometry.core.misc.units import UNITS
from ansys.geometry.core.plotting import *
from ansys.geometry.core.sketch import *
import pytest
from ansys.geometry.core.shapes.curves.line import Line
The text was updated successfully, but these errors were encountered:
🔍 Before submitting the issue
🐞 Description of the bug
There is a translate for the bodies and components (ie body.translate) but none for faces or edges. Faces or edges can be moved using move_translate but that only takes name selections as the argument. It
📝 Steps to reproduce
design = modeler.create_design("move_rotate_box")
body = design.extrude_sketch("box", Sketch().box(Point2D([0, 0]), 2, 2), 2)
ns = design.create_named_selection("Five", faces=[design.bodies[0].faces[1]])
ns1 = design.create_named_selection("New", edges=[design.bodies[0].edges[4], design.bodies[0].edges[0], design.bodies[0].edges[6], design.bodies[0].edges[2]])
ns2 = design.create_named_selection("Weekend", bodies=[design.bodies[0]])
success = modeler.geometry_commands.move_translate(ns2, UNITVECTOR3D_Z, Distance(0.2, UNITS.m))
body.translate(UnitVector3D([1, 0, 0]), Quantity(4, UNITS.m))
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
No response
🐍 Which Python version are you using?
3.12
📦 Installed packages
The text was updated successfully, but these errors were encountered: