We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7553635 commit bdb7a00Copy full SHA for bdb7a00
Cargo.lock
plugins/chop/python/src/lib.rs
@@ -1,11 +1,6 @@
1
#![feature(min_specialization)]
2
3
-use pyo3::impl_::pyclass::{PyClassImpl, PyMethods};
4
-use pyo3::prelude::PyAnyMethods;
5
-use pyo3::{pyclass, pymethods, Bound, PyAny, PyResult, Python};
6
-use std::pin::Pin;
7
-use td_rs_chop::cxx::AsPlugin;
8
-use td_rs_chop::*;
+use td_rs_chop::prelude::*;
9
use td_rs_derive::*;
10
use td_rs_derive_py::PyOp;
11
plugins/sop/generator-sop/src/shapes.rs
@@ -86,18 +86,18 @@ pub const THE_CUBE_TEXTURE: [TexCoord; THE_CUBE_NUM_PTS] = [
86
// front
87
TexCoord::new(2.0 / 3.0, 0.0, 0.0),
88
TexCoord::new(2.0 / 3.0, 0.5, 0.0),
89
- TexCoord::new(3.0 / 3.0, 0.0, 0.0),
90
- TexCoord::new(3.0 / 3.0, 0.5, 0.0),
+ TexCoord::new(1.0, 0.0, 0.0),
+ TexCoord::new(1.0, 0.5, 0.0),
91
// back
92
TexCoord::new(0.0 / 3.0, 0.5, 0.0),
93
TexCoord::new(0.0 / 3.0, 0.0, 0.0),
94
TexCoord::new(1.0 / 3.0, 0.5, 0.0),
95
TexCoord::new(1.0 / 3.0, 0.0, 0.0),
96
// top
97
TexCoord::new(2.0 / 3.0, 1.0, 0.0),
98
- TexCoord::new(3.0 / 3.0, 1.0, 0.0),
+ TexCoord::new(1.0, 1.0, 0.0),
99
100
101
// bottom
102
103
td-rs-chop/Cargo.toml
@@ -13,6 +13,7 @@ cxx = "1.0.78"
13
td-rs-base = { path = "../td-rs-base" }
14
tracing-base = { package = "tracing", version = "0.1", optional = true }
15
tracing-subscriber = { version = "0.2", optional = true }
16
+pyo3 = { git = "https://github.com/tychedelia/pyo3", branch = "td-rs", features = ["abi3-py311"], optional = true }
17
18
[build-dependencies]
19
td-rs-autocxx-build = { path = "../td-rs-autocxx-build" }
@@ -21,6 +22,6 @@ miette = { version="5", features = [ "fancy" ] }
21
22
23
[features]
24
default = []
-python = ["td-rs-base/python"]
25
+python = ["td-rs-base/python", "dep:pyo3"]
26
tracing = ["td-rs-base/tracing", "tracing-base", "tracing-subscriber"]
27
tokio = ["td-rs-base/tokio"]
td-rs-chop/src/lib.rs
@@ -8,6 +8,7 @@ pub use td_rs_base::chop::*;
pub use td_rs_base::*;
pub mod cxx;
+pub mod prelude;
12
#[derive(Debug, Default)]
pub struct ChopOutputInfo {
td-rs-chop/src/prelude.rs
@@ -0,0 +1,9 @@
+pub use crate::cxx::AsPlugin;
+pub use crate::*;
+
+#[cfg(feature = "python")]
+pub use pyo3::impl_::pyclass::{PyClassImpl, PyMethods};
+pub use pyo3::prelude::*;
+pub use std::pin::Pin;
td-rs-dat/Cargo.toml
@@ -15,6 +15,7 @@ ref-cast = "1.0"
sparsevec = "0.2.0"
20
@@ -23,6 +24,6 @@ miette = { version="5", features = [ "fancy" ] }
28
29
td-rs-dat/src/lib.rs
@@ -7,6 +7,7 @@ pub use td_rs_base::param::OperatorParams;
pub struct DatGeneralInfo {
td-rs-dat/src/prelude.rs
td-rs-sop/Cargo.toml
@@ -14,6 +14,7 @@ td-rs-base = { path = "../td-rs-base" }
ref-cast = "1.0"
@@ -22,6 +23,6 @@ miette = { version="5", features = [ "fancy" ] }
0 commit comments