Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mesh] A small fix for mesh loop syntax in python frontend #3836

Merged
merged 2 commits into from
Dec 23, 2021

Conversation

BillXu2000
Copy link
Collaborator

Related issue = #3608

import taichi as ti, argparse

parser = argparse.ArgumentParser()
parser.add_argument('--json')
args = parser.parse_args()

outer = 'faces'
inner = 'edges'

ti.init(arch=ti.cuda)
vecf = ti.types.vector(3, ti.f32)

mesh = ti.TetMesh()

mesh.faces.link(mesh.edges)
mesh.faces.link(mesh.verts)
bunny = mesh.build(ti.Mesh.load_meta(args.json))

faces = bunny.faces

@ti.kernel
def get_off():
    for i in faces:
        pass
get_off()

make for i in faces: in ti.kernel work.

@netlify
Copy link

netlify bot commented Dec 20, 2021

✔️ Deploy Preview for jovial-fermat-aa59dc canceled.

🔨 Explore the source changes: 812a1c9

🔍 Inspect the deploy log: https://app.netlify.com/sites/jovial-fermat-aa59dc/deploys/61bfe788f780840009751bf7

@CLAassistant
Copy link

CLAassistant commented Dec 20, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@g1n0st g1n0st left a comment

Choose a reason for hiding this comment

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

LGTM!

@BillXu2000
Copy link
Collaborator Author

I wonder why Apple M1 Tests failed here...
Besides, I push these commits with a new email, and CLA becomes a problem here now. How can I fix this?
@ailzhang @k-ye

@strongoier strongoier merged commit 0bd9d61 into taichi-dev:master Dec 23, 2021
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.

4 participants