Skip to content

Conversation

@waywardmonkeys
Copy link
Collaborator

Introduce a first draft of the imaging_model crate with clip-focused model types. The goal is to establish a small, explicit core model that we can evolve as we define the imaging model and move our renderers to using it.


/// Conservative axis-aligned bounds of this geometry.
///
/// Returns `None` if the geometry bounds are non-finite.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Is this a reasonable guarantee to make?

return None;
}

// Conservative outset to account for width, caps, and miter joins.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Is the fact that this isn't accurate a reason to not do it? Should we drop Clip::bounds because of this? But we do call it out in the doc comment. But maybe we should call the function conservative_bounds instead?

Fill {
/// Transform applied to the clip shape.
///
/// This does not affect subsequent draws; it only affects how the clip shape is interpreted.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

At some point, we should identify the semantics of this transform: coordinate space, when it is applied, etc.

Introduce a first draft of the `imaging_model` crate with
clip-focused model types. The goal is to establish a small,
explicit core model that we can evolve as we define the
imaging model and move our renderers to using it.
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.

1 participant