Skip to content

Commit

Permalink
(extensions.geometry) fixing up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
snake-biscuits committed Jan 4, 2024
1 parent 9b9e64d commit ffd4ae5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bsp_tool/extensions/geometry/base.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations
from typing import List

from ..utils import vector
from ...utils import vector


# TODO: Mesh, Material, Model
Expand Down
9 changes: 5 additions & 4 deletions bsp_tool/extensions/geometry/brushwork.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
from typing import List

from ..utils import physics
# from ...utils import physics
from ..editor import generic
from . import base


def polygons_of(brush: physics.Brush) -> List[base.Polygon]:
def polygons_of(brush: generic.Brush) -> List[base.Polygon]:
# generate a Polygon for each Plane, such that they can be zipped
# extensions.editor should have a Brush class w/ BrushSides
raise NotImplementedError()
# aabb quads
# generic.Brush(...).as_physics() # calculate AABB
# AABB quads
# slice edges w/ each non-axial plane
# only respect in-bounds intersections
# slice edge by replacing A-B w/ A-S;S-B if A & B on opposite sides
Expand Down

0 comments on commit ffd4ae5

Please sign in to comment.