Skip to content

Conversation

@SpliiT
Copy link
Member

@SpliiT SpliiT commented Oct 31, 2025

No description provided.

# Create vertices first
for point in params.points:
pp = opengeode.Point3D([point.x, point.y, params.z])
# pp = opengeode.Point3D([point.x, point.y, params.z])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je supprimer alors

params = schemas.CreateVoi.from_dict(flask.request.get_json())

# Define the 4 vertices of the AOI (bottom face in the XY plane)
aoi_vertices = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non, il faut récupérer l'id de l'aoi dans la request et récupérer la data via la db.

z_min = params.z_min
z_max = params.z_max

# --- 1. Create the 8 vertices of the bounding box ---
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pour l'aoi, le back est générique, pas forcément 4 sommets. Il faut faire la même pour le voi.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

X et Y ne doivent pas faire parti des params. Toute l'info est déjà dans l'aoi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants